Edit report at http://bugs.php.net/bug.php?id=54200&edit=1
ID: 54200
User updated by: carsten_sttgt at gmx dot de
Reported by: carsten_sttgt at gmx dot de
Summary: Access violation if extension can't be loaded
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Windows
-PHP Version: 5.3.6RC2
+PHP Version: 5.3.6RC3
Block user comment: N
Private report: N
New Comment:
Still exists in 5.3.6RC3.
Something I just realized:
With the default "display_startup_errors = Off" there is immediately a
crash.
With "display_startup_errors = On" you first have a "Warning" message
box "PHP Startup: Unable to load ...". Now the behavior depends on how
fast you click on "OK".:
- If you click fast on "OK" there is a crash.
- If you click slow on "OK" there is no "crash" (no message "CLI has
stopped working). But also no output with the version infos (parameter
-v in this example).
Previous Comments:
------------------------------------------------------------------------
[2011-03-09 11:14:12] carsten_sttgt at gmx dot de
Description:
------------
Only TS builds are affected.
Assuming this in my "php.ini:
| extension = "nonexistent.dll"
is resulting in a crash.
(6cc.1260): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=01b810c0 ebx=584f9674 ecx=00000000 edx=0802fb7c esi=01cf2858
edi=01cf2858
eip=58207620 esp=00b4f5b0 ebp=01cf2858 iopl=0 nv up ei pl nz na
pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00010206
php5ts!guess_timezone+0x20:
58207620 8b4204 mov eax,dword ptr [edx+4]
ds:0023:0802fb80=????????
BTW:
Using "dl('nonexistent.dll');" in a script is working as expected. Also
with NTS builds there is no problem.
Test script:
---------------
in the shell:
php -v
Expected result:
----------------
| Warning: PHP Startup: Unable to load dynamic library
| 'C:\Program Files\PHP\php-current\ext\nonexistent.dll'
Or no error with "display_startup_errors = Off"
Actual result:
--------------
CLI has stopped working
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54200&edit=1