From: [EMAIL PROTECTED] Operating system: Windows 98/ME PHP version: 4.3.0 PHP Bug Type: Reproducible crash Bug description: shell functions (system etc) cause crash
I get repeatable crashes on both Windows 98 and Windows ME running any script which calls a shell function, like system(), exec(), or shell_exec(). This applies to both 4.2.3 and 4.3.0, using either the CGI or CLI executable. No web server is used on these machines, just DOS command line or drag and drop script execution. I have tested this on two different machines (one 98 and one ME). An example script follows: <?php // Any of these commands will cause a crash. // Comment out all but one: `php hello.php`; // a hello world script system("C:\\PHP\\php -r 'exit(1);'"); system('edit hello.php'); exec('C:\WINDOWS\NOTEPAD.EXE'); ?> A dialog comes up stating roughly, "This program has performed an illegal operation and will be terminated. Close all programs and reboot the computer." The dialog's details button describes the problem as, "The program has encountered an invalid page exception," notes a fault location of 0028:0009, and says no interrupts were in service. My install process is to simply unpack the tar-ball and place it in C:\php. I don't modify php.ini, and I don't install any extensions. Purely unpack-and-go. I can execute fairly complex scripts with PHP installed like this, but anything involving a shell crashes, requiring a reboot. -- Edit bug report at http://bugs.php.net/?id=21972&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21972&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21972&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21972&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21972&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21972&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21972&r=support Expected behavior: http://bugs.php.net/fix.php?id=21972&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21972&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21972&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21972&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21972&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21972&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21972&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21972&r=gnused