php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48832 Calling php.exe on console crashes
Submitted: 2009-07-07 12:00 UTC Modified: 2009-07-07 16:42 UTC
From: trueleader at gmx dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.3.0 OS: win32 only - Windows Vista x86
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: trueleader at gmx dot de
New email:
PHP Version: OS:

 

 [2009-07-07 12:00 UTC] trueleader at gmx dot de
Description:
------------
- Unpacked http://windows.php.net/downloads/releases/php-5.3.0-Win32-VC6-x86.zip
- Copied php.ini-production to php.ini
- Calling php.exe of the package from console

-> Crashes

Windows Eventlog (sry. German :/ ):

Fehlerhafte Anwendung php.exe, Version 5.3.0.0, Zeitstempel 0x4a492334, fehlerhaftes Modul php5ts.dll, Version 5.3.0.0, Zeitstempel 0x4a4922e7, Ausnahmecode 0xc0000005, Fehleroffset 0x000e4e3d, Prozess-ID 0x123c, Anwendungsstartzeit 01c9fef8709bc110.

Reproduce code:
---------------
Console command: php.exe -m

Expected result:
----------------
List of all modules loaded

Actual result:
--------------
Windows Popup with message (German :/ )
---
Der Prozedureinsprungspunkt "_regexec@20" wurde in der DLL "php5ts.dll" nicht gefunden

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-07 12:43 UTC] jani@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.


 [2009-07-07 13:18 UTC] trueleader at gmx dot de
Backtrace

Thread 0 - System ID 5028
Entry point   php!mainCRTStartup 
Create time   07.07.2009 15:11:26 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.31 






Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!guess_timezone+1d     10399408     001527c0     00000001    
php5ts!get_timezone_info+1b     001527c0     018af258     00000003    
php5ts!php_format_date+1b     10343128     0000000b     4a534980    
php5ts!php_log_err+ad     01a426e0     001527c0     00c0faa0    
php5ts!php_error_cb+375     00000020     103348f4     00000000    
php5ts!zend_error+48a     00000020     103348a4     01a4f600    
php5ts!php_verror+554     00000000     103347c8     00000020    
php5ts!php_error_docref0+23     00000000     001527c0     00000020    
php5ts!php_load_extension+13f     01a42070     00000001     00000000    
php5ts!php_load_php_extension_cb+15     018b0e98     001527c0     105044a8    
php5ts!zend_llist_apply+1c     10525d04     100b9c20     001527c0    
php5ts!php_ini_register_extensions+25     001527c0     00c0fdcc     00000000    
php5ts!php_module_startup+8d7     00405020     00000000     00000000    
php!php_cli_startup+f     00405020     00000000     00000000    
php!main+39b     00000002     001514c8     00151760    
php!mainCRTStartup+e3     7ffdf000     00c0ffec     7706a9bd    
kernel32!BaseThreadInitThunk+12     7ffdf000     00c0377a     00000000    
ntdll!LdrInitializeThunk+4d     00402d78     7ffdf000     00000000    




PHP5TS!GUESS_TIMEZONE+1DIn php__PID__5460__Date__07_07_2009__Time_03_11_28PM__235__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!guess_timezone+1d in C:\backtrace php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x0802444e on thread 0

Module Information 
Image Name: C:\backtrace php\php5ts.dll   Symbol Type:  PDB 
Base address: 0x10000000   Time Stamp:  Mon Jun 29 22:24:07 2009  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.3.0 
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:\backtrace php\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  5,44 MBytes   Product Version:  5.3.0
 [2009-07-07 14:06 UTC] pajoye@php.net
Known bug about the timezone warning.

Please set a correct timezone in your php.ini and try again.
 [2009-07-07 14:31 UTC] trueleader at gmx dot de
After I read "PHP5TS!GUESS_TIMEZONE" I already remembered this issue and entered "date.timezone = Europe/Berlin" in php.ini which does not affected the report (or I don?t see the change). Therefor I send the one without the timezone setting

Here again one backtrace with setting in php.ini (done in the new php path and copied php.ini to c:\windows ... I?m not sure if the CLI searches on the right place)

--------

Thread 0 - System ID 4924
Entry point   php!mainCRTStartup 
Create time   07.07.2009 16:23:36 
Time spent in user mode   0 Days 0:0:0.62 
Time spent in kernel mode   0 Days 0:0:0.0 






Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!guess_timezone+1d     10399408     001b1518     00000001    
php5ts!get_timezone_info+1b     001b1518     018ef258     00000003    
php5ts!php_format_date+1b     10343128     0000000b     4a535a6a    
php5ts!php_log_err+ad     019d26e0     001b1518     00c0faa0    
php5ts!php_error_cb+375     00000020     103348f4     00000000    
php5ts!zend_error+48a     00000020     103348a4     019df600    
php5ts!php_verror+554     00000000     103347c8     00000020    
php5ts!php_error_docref0+23     00000000     001b1518     00000020    
php5ts!php_load_extension+13f     019d2070     00000001     00000000    
php5ts!php_load_php_extension_cb+15     018f0e98     001b1518     105044a8    
php5ts!zend_llist_apply+1c     10525d04     100b9c20     001b1518    
php5ts!php_ini_register_extensions+25     001b1518     00c0fdcc     00000000    
php5ts!php_module_startup+8d7     00405020     00000000     00000000    
php!php_cli_startup+f     00405020     00000000     00000000    
php!main+39b     00000002     001b14c8     001b1758    
php!mainCRTStartup+e3     7ffd5000     00c0ffec     7706a9bd    
kernel32!BaseThreadInitThunk+12     7ffd5000     00c029ba     00000000    
ntdll!LdrInitializeThunk+4d     00402d78     7ffd5000     00000000    




PHP5TS!GUESS_TIMEZONE+1DIn php__PID__164__Date__07_07_2009__Time_04_23_38PM__747__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!guess_timezone+1d in C:\backtrace php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x080274d8 on thread 0

Module Information 
Image Name: C:\backtrace php\php5ts.dll   Symbol Type:  PDB 
Base address: 0x10000000   Time Stamp:  Mon Jun 29 22:24:07 2009  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.3.0 
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:\backtrace php\php5ts.dll   Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  5,44 MBytes   Product Version:  5.3.0 
Symbol File Name:  C:\debug_pack\php5ts.pdb   Special Build:  &
 [2009-07-07 14:40 UTC] pajoye@php.net
"Der Prozedureinsprungspunkt "_regexec@20" wurde in der DLL "php5ts.dll" nicht gefunden"

Hm, does not makes sense.

Please try to run php -n -d -m.

 [2009-07-07 15:00 UTC] trueleader at gmx dot de
Nothing happens
- no crash
- no output
- no event log entry

Task manager a php process is runnung with 0% CPU, 2.620k RAM, 0 IO, Description: CLI

thats all.

------

tried without "-d": it shows the list of loaded PHP Modules correctly
tried with "-c" and give it the path of an actual productive php.ini: same error happens
 [2009-07-07 15:03 UTC] pajoye@php.net
Please post a link to this php.ini
 [2009-07-07 16:12 UTC] trueleader at gmx dot de
Found problem:
calling <PATH>\php.exe does neither use <PATH>\php.ini nor c:\windows\php.ini but some other wherever on my system.

With the test "<PATH>\php.exe -c <PRODUCTION FILE>" I used an PHP5.2.6 php.ini, which included PHP5.2 extensions. I think one of these caused the unusual error message

Maybe there should be a fast way to determine what php.ini the executable will use to fasten error diagnostics because all the error messages i got does not point to the real problem.


Sorry for wasting time and thank you for your help.


Greetings
Nikolai Essel
 [2009-07-07 16:42 UTC] pajoye@php.net
Not a bug > bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 12:01:33 2025 UTC