|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54200 Access violation if extension can't be loaded
Submitted: 2011-03-09 11:14 UTC Modified: 2013-02-18 00:34 UTC
From: carsten_sttgt at gmx dot de Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.3.6RC3 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-03-09 11:14 UTC] carsten_sttgt at gmx dot de
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
58207620 8b4204          mov     eax,dword ptr [edx+4] ds:0023:0802fb80=????????

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-11 09:22 UTC] carsten_sttgt at gmx dot de
-PHP Version: 5.3.6RC2 +PHP Version: 5.3.6RC3
 [2011-03-11 09:22 UTC] carsten_sttgt at gmx dot de
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).
 [2011-06-13 02:58 UTC]
-Status: Open +Status: Feedback
 [2011-06-13 02:58 UTC]
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 for *NIX and 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.

 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 18:01:29 2024 UTC