problems and workarounds running php-gtk 0.5.1 under Windows XP/PHP 4.2.1

From: Date: Tue, 14 May 2002 12:50:03 +0000
Subject: problems and workarounds running php-gtk 0.5.1 under Windows XP/PHP 4.2.1
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1960@lists.php.net to get a copy of this message
I am trying to run php-gtk in coexistence with my PHP 4.2.1 setup and encountered the following interesting problems and workarounds. Following the instructions I put the g*.dlls, i*.dlls and lib*.dlls in windows\system32, the php_*.dlls in c:\php4\extensions, pointed extension_dir to it and added the [PHP-GTK] section to php.ini, but stuck to using the CGI php.exe that came with 4.2.1. I get a "procedure entry point _ecalloc could not be located in the dynamic link library php4ts.dll" error dialog. On the other hand if I use the php.exe that came with php-gtk 0.5.1, I get a "PHP Fatal Error: php-gtk: argc/argv are corrupted in hello.php on line 7" where line 7 is the dl('php_gtk.dll') statement. Using php_win.exe results in nothing happening and I immediately end up back in the command line. I managed to get it to work only by combining php.exe from the 4.2.1 distribution with php4ts.dll in the php-gtk 0.5.1 distribution! In this case php.exe works, but there are certain small glitches like the hello program from http://www.goldweb.com.au/~davidj/articles/html/1.html not exiting properly back to the command line (requires a CTRL-BREAK) while other programs would display the http headers on exit. Interestingly enough, by replacing the php-gtk 0.5.1 php.exe with the one from PHP 4.2.1, php_win.exe now also works! It also exhibits none of the problems of php.exe from PHP 4.2.1. What's going on here?

« previous php.gtk.general (#1960) next »