Edit report at http://bugs.php.net/bug.php?id=51307&edit=1
ID: 51307 User updated by: joerg dot klein at ifsam dot lu Reported by: joerg dot klein at ifsam dot lu Summary: php.exe error on command line -Status: Feedback +Status: Open Type: Bug Package: Unknown/Other Function Operating System: Windows Server 2003 PHP Version: 5.3.2 New Comment: Backtrace: Thread 0 - System ID 1180 Entry point php!mainCRTStartup Create time 16.03.2010 16:09:36 Time spent in user mode 0 Days 0:0:0.15 Time spent in kernel mode 0 Days 0:0:0.93 Function Arg 1 Arg 2 Arg 3 Source php5ts!_zend_mm_free_int+66 002250f8 5c6e6574 100d2214 php5ts!_efree+36 01ad44b0 00223ba8 101f2e05 php5ts!closelog+54 101ae8b7 00000001 00000013 php5ts!zm_deactivate_syslog+5 00000001 00000013 00223ba8 php5ts!zm_deactivate_basic+e7 00000001 00000013 00223ba8 php5ts!module_registry_cleanup+1c 01bfcca8 00223ba8 00c0fb24 php5ts!zend_hash_reverse_apply+42 1054d280 10008400 00223ba8 php5ts!zend_deactivate_modules+62 00c0ffb0 00000000 56433230 php5ts!zend_deactivate_modules+48 00229adc 00223ba8 100bbbdb php5ts!zend_llist_clean+b 00229adc 00000000 00c0fdf0 php5ts!php_deactivate_ticks+1b 00c0fc0c 00223ba8 00c0fea8 php5ts!execute+2fe 01b00128 00223b00 00000000 php5ts!zend_execute_scripts+f6 00c0ffb0 00000000 56433230 php5ts!php_request_shutdown+13d 00000002 00220178 01ace4c8 msvcrt!_lseek+aa 00c0ffb0 00000000 56433230 php5ts!php_request_shutdown+206 77bbd08c 00220000 00000000 ntdll!RtlAllocateHeap+ee7 00000000 00000000 7ffda000 kernel32!BaseProcessStart+23 00402d78 00000000 00000000 PHP5TS!_ZEND_MM_FREE_INT+66In php__PID__1284__Date__03_16_2010__Time_04_09_56PM__366__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!_zend_mm_free_int+66 in C:\Program Files\Apache Group\Apache\php-bin\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x5e1baa1c on thread 0 Module Information Image Name: C:\Program Files\Apache Group\Apache\php-bin\php5ts.dll Symbol Type: PDB Base address: 0x10000000 Time Stamp: Wed Mar 03 20:38:42 2010 Checksum: 0x00000000 Comments: COM DLL: False Company Name: The PHP Group ISAPIExtension: False File Description: PHP Script Interpreter ISAPIFilter: False File Version: 5.3.2 Managed DLL: False Internal Name: PHP Script Interpreter VB DLL: False Legal Copyright: Copyright © 1997-2009 The PHP Group Loaded Image Name: php5ts.dll Legal Trademarks: PHP Mapped Image Name: C:\Program Files\Apache Software Foundation\Apache2.2\php-bin\php5ts.dll Original filename: php5ts.dll Module name: php5ts Private Build: Single Threaded: False Product Name: PHP Module Size: 5,50 MBytes Product Version: 5.3.2 Symbol File Name: C:\Program Files\Apache Software Foundation\Apache2.2\php-bin\php5ts.pdb Special Build: & Previous Comments: ------------------------------------------------------------------------ [2010-03-16 15:49:09] paj...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2010-03-16 15:48:55] paj...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. I can't reproduce any crash with the code you have provided. Please provide a backtrace if you can, that should be a start. ------------------------------------------------------------------------ [2010-03-16 15:46:06] joerg dot klein at ifsam dot lu as I stated above: Ignore the runtime errors, I have reduced the code as much as possible to track down the problem. With the correct and complete source code, the same error occurs. ------------------------------------------------------------------------ [2010-03-16 15:43:36] joerg dot klein at ifsam dot lu I wasn't referering to a specific line. I removed step-by-step all lines which produces no error. I tried to reproduce a one file script without success. I think the error depends on including files and the length of the filenames/Directories. When I shorten the dir- or the filename, the error is gone. ------------------------------------------------------------------------ [2010-03-16 15:39:31] paj...@php.net btw, try to fix your code while being at it: Warning: in_array() expects parameter 2 to be array, null given in C:\test\51307\error_handler.php on line 31 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in C:\test\51307\error_handler.php on line 39 Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in C:\test\51307\error_handler.php on line 55 Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\test\51307\error_handler.php on line 116 Warning: in_array() expects parameter 2 to be array, null given in C:\test\51307\error_handler.php on line 119 <font color="red"><b>Error</b>: Use of undefined constant require_path - assumed 'require_path' in <b>C:\test\51307\conf.php</b> on line <b>2</b><br></font><br> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51307 -- Edit this bug report at http://bugs.php.net/bug.php?id=51307&edit=1