The code that was generated from phpgladetool seems to be using an older
way for checking for modules. See below which I got from the PHP-GTK2
manual.
---------------------------------------------
Example 1.2. Checking if PHP-GTK is available
if (!class_exists('gtk')) {
die("Please load the php-gtk2 module in your php.ini\r\n");
}
Here we make sure that PHP-GTK is available by checking if the class gtk
exists. Unlike PHP 4 and PHP-GTK 1, you should not try to load the
PHP-GTK module via dl(). This has been deprecated in PHP 5, and should
not be used in newly written code. So all we can do is print out a
message, that the module is not available and should be enabled by the
user.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
The code that was generated from phpgladetool seems to be using an older
way for checking for modules. See below which I got from the PHP-GTK2
manual.
---------------------------------------------
Example 1.2. Checking if PHP-GTK is available
if (!class_exists('gtk')) {
die("Please load the php-gtk2 module in your php.ini\r\n");
}
Here we make sure that PHP-GTK is available by checking if the class gtk
exists. Unlike PHP 4 and PHP-GTK 1, you should not try to load the
PHP-GTK module via dl(). This has been deprecated in PHP 5, and should
not be used in newly written code. So all we can do is print out a
message, that the module is not available and should be enabled by the
user.
Hi lee_connell, the 0.3 release fix that deprecated call.