Topic Closed
Steev
47 Posts

How do I resolve the issue of "Character Type Checking Failed"? I am using PHP 5.0.5 on NetWare 6.5. However the PHP manuals says Character Type Checking is enabled by default since version 4.something. I cannot update to a more recent version of PHP, absolutely not possible as I cannot compile the PHP binary that the server requires.

What can I do?

Edited: 9 years ago#2891

Josh S.
2K Posts
295K Downloads
16 Themes
18 Plugins

ctype is enabled by default, but unfortunately, not all php installations use the default settings. I'm not real familiar with NetWare, but it is often possible to install extensions without recompiling.

You could also try loading the extension with php. Try adding this to your gpconfig.php file:

dl('ctype.so');

9 years ago#2892

Steev
47 Posts

Does installing a PHP extension require something from Novell, who wrote the PHP binary? Or is that what happens by adding dl('ctype.so'); to my gpconfig.php file? Is this documented somewhere so I can learn what it does and so on?

Update: I added the line to my gpconfig.php file, restarted apache, and refreshed the page. No change.

Examining the PHP.ini file, it looks like I would need a ctype.nlm in order to load the extension on a NetWare 6.5 server. Is there some way to get gpEasy to work without needing ctype?

Edited: 9 years ago#2895

Steev
47 Posts

Does anyone know, is there some way to get gpEasy to work without needing ctype?

9 years ago#2923

Josh S.
2K Posts
295K Downloads
16 Themes
18 Plugins

Not sure why I didn't think of this before. The ctype functions are pretty simple and we could just add them if they don't exist. Just add the following code to your include common.php file:

if( !function_exists('ctype_alnum') ){
    function ctype_alnum($string){
        return (bool)preg_match('#^[a-z0-9]*$#i',$string);
    }
}

if( !function_exists('ctype_digit') ){
    function ctype_digit($string){
        return (bool)preg_match('#^[0-9]*$#i',$string);
    }
}

9 years ago#2930

Steev
47 Posts

Josh, that worked perfectly and I didn't even have to restart Apache. Thank you.

9 years ago#2936

Josh S.
2K Posts
295K Downloads
16 Themes
18 Plugins

Great news. I should have thought of it before. I've added that bit of code to gpEasy so you won't have to worry about future releases. Thanks for helping!

9 years ago#2938

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register