From: Operating system: Windows server 2008 R2 PHP version: 5.3.8 Package: IIS related Bug Type: Bug Bug description:FastCGI causes event 1000 application error when using number_format(0)
Description: ------------ We installed PHP 5.3.8 using the windows installer from microsoft and set the configuration according to the recommended settings for IIS 7. http://www.microsoft.com/web/platform/phponwindows.aspx We have a simple script that echo number_format(0); When accessing that script, and refreshing a couple of times, we get an error 500. We also have another script which does the same but has a query to an ODBC link. Whenever we use both at the same time, the 500 error occurs frequently, every 2 refreshes. We also, made sure that no script errors appear in the logs we have saved to the windows temp dir and in fact none appear, to be sure it was working properly we made simple errors to test and it was in fact writing properly to the log files. Test script: --------------- <?php // works alone / doesn't work when both used with odbc acomba echo number_format(0).'<br />'; // acomba $odbc_link = odbc_connect('', '', ''); $result = odbc_exec($odbc_link,"SELECT PrActive AS actif, PrNumber AS code_produit, PrDescription1 AS desc_f, PrDescription2 AS desc_e, PrComments AS commentaire, PrProductGroupCP AS id_produits_groupes, PrTaxExceptionCP AS id_tax_exception, PrSellingPrice0_1 AS prix_membre_individuel, PrSellingPrice0_2 AS prix_membre_couple, PrSellingPrice0_3 AS prix_membre_famille, PrSellingPrice0_4 AS prix_membre_enfants, PrSellingPrice0_5 AS prix_non_membre, RecCardPos AS id_produits_acomba FROM Product") or die(odbc_errormsg($odbc_link)); if (odbc_num_rows($result)) { while ($row = odbc_fetch_array($result)) { print_r($row); exit; } } ?> Expected result: ---------------- The script should run and not cause a 500 error. Actual result: -------------- Here is the event details that is given on the crash. <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Level>2</Level> <Task>100</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2011-09-15T22:37:50.000000000Z" /> <EventRecordID>5414</EventRecordID> <Channel>Application</Channel> <Computer>svrweb.intranet.local</Computer> <Security /> </System> <EventData> <Data>php-cgi.exe</Data> <Data>5.3.8.0</Data> <Data>4e537f4b</Data> <Data>KERNELBASE.dll</Data> <Data>6.1.7600.16385</Data> <Data>4a5bdbdf</Data> <Data>c000008e</Data> <Data>0000b727</Data> <Data>9b4</Data> <Data>01cc73f7f2b1da31</Data> <Data>C:\Program Files (x86)\PHP\v5.3\php-cgi.exe</Data> <Data>C:\Windows\syswow64\KERNELBASE.dll</Data> <Data>5773289d-dfeb-11e0-99e3-bc305bd47266</Data> </EventData> </Event> -- Edit bug report at https://bugs.php.net/bug.php?id=55712&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55712&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55712&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55712&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55712&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55712&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55712&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55712&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55712&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55712&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55712&r=support Expected behavior: https://bugs.php.net/fix.php?id=55712&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55712&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55712&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55712&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55712&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55712&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55712&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55712&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55712&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55712&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55712&r=mysqlcfg