From: richard dot quadling at carval dot co dot uk Operating system: Windows XP Pro SP1 PHP version: 4.3.5 PHP Bug Type: Reproducible crash Bug description: CLI script generates a "Please tell Microsoft about this problem".
Description: ------------ The following script (which is from a working script for V4.3.4) runs but does not close down properly. <?php function CloseScript() { global $asLog; $asLog[] = 'Finished'; } $asLog = array('Started'); CloseScript(); print_r($asLog); ?> produces output of ... Array ( [0] => Started [1] => Finished ) The above script is from a program to download antivirus updates, store them on our server and inform all clients that a new update is available and track their compliance with upgrading. The error signature is (available when you click "To see what data this error report contains, click here"). AppName: php.exe AppVer: 4.3.5.5 ModName: unknown ModVer: 0.0.0.0 Offset: 00bb41f0 An appcompat.txt file is also produced ... <?xml version="1.0" encoding="UTF-16"?> <DATABASE> <EXE NAME="php.exe" FILTER="GRABMI_FILTER_PRIVACY"> <MATCHING_FILE NAME="php.exe" SIZE="24576" CHECKSUM="0xF7CC6784" BIN_FILE_VERSION="4.3.5.5" BIN_PRODUCT_VERSION="4.3.5.0" PRODUCT_VERSION="4.3.5" FILE_DESCRIPTION="PHP Script Interpreter" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP Thread Safe Command Line Interface" FILE_VERSION="4.3.5.5" ORIGINAL_FILENAME="php.exe" INTERNAL_NAME="php-cli" LEGAL_COPYRIGHT="Copyright © 2002 The PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x40000" UPTO_BIN_FILE_VERSION="4.3.5.5" UPTO_BIN_PRODUCT_VERSION="4.3.5.0" LINK_DATE="03/25/2004 14:20:57" UPTO_LINK_DATE="03/25/2004 14:20:57" VER_LANGUAGE="English (United States) [0x409]" /> </EXE> <EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY"> <MATCHING_FILE NAME="kernel32.dll" SIZE="930304" CHECKSUM="0xCBCCF8A9" BIN_FILE_VERSION="5.1.2600.1106" BIN_PRODUCT_VERSION="5.1.2600.1106" PRODUCT_VERSION="5.1.2600.1106" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.1106 (xpsp1.020828-1920)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xE7ED3" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.1106" UPTO_BIN_PRODUCT_VERSION="5.1.2600.1106" LINK_DATE="08/29/2002 10:40:40" UPTO_LINK_DATE="08/29/2002 10:40:40" VER_LANGUAGE="English (United States) [0x409]" /> </EXE> </DATABASE> I have restored V4.3.4 and the problem is not present. It seems that this is ONLY with CLI version. I use Sambar Server and the ISAPI module. If I run the same script via the browser (all on the same pc), then no problems. Regards, Richard Quadling. P.S. Is there a debug build available for the windows version. I do NOT have access to a Microsoft C compiler. Reproduce code: --------------- <?php function CloseScript() { global $asLog; $asLog[] = 'Finished'; } $asLog = array('Started'); CloseScript(); print_r($asLog); ?> Expected result: ---------------- Array ( [0] => Started [1] => Finished ) without a crash. Actual result: -------------- Array ( [0] => Started [1] => Finished ) with a crash. -- Edit bug report at http://bugs.php.net/?id=27750&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27750&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27750&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27750&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27750&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27750&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27750&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27750&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27750&r=support Expected behavior: http://bugs.php.net/fix.php?id=27750&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27750&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27750&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27750&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27750&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27750&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27750&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27750&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27750&r=float