From:             
Operating system: Windows
PHP version:      5.3.6RC2
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Access violation if extension can't be loaded

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 bug report at http://bugs.php.net/bug.php?id=54200&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54200&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54200&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54200&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54200&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54200&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54200&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54200&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54200&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54200&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54200&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54200&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54200&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54200&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54200&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54200&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54200&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54200&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54200&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54200&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54200&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54200&r=mysqlcfg

Reply via email to