|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-13 14:12 UTC] mabouzou at sybase dot com
[2008-08-28 21:31 UTC] jani@php.net
[2008-09-05 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
Description: ------------ PHP would crash while executing the attached code. The code basically declares a function and attempts to load an extension using the dl() command. If the extension returns FAILURE in the MINIT function, PHP will crash. Reproduce code: --------------- <?php function foo() { echo "Inside foo.\n"; } dl( 'my_extension.dll' ); ?> Expected result: ---------------- Inside foo. <... something along the lines of ... cannot load extension my_extension.dll ... > Actual result: -------------- A crash. Here is the stack trace: php5ts.dll!destroy_op_array(_zend_op_array * op_array=0x011c9720, void * * * tsrm_ls=0x00375d20) Line 228 + 0x3 bytes C php5ts.dll!zend_function_dtor(_zend_function * function=0x0139df68) Line 123 + 0x16 bytes C php5ts.dll!zend_hash_destroy(_hashtable * ht=0x00373328) Line 526 + 0x6 bytes C php5ts.dll!compiler_globals_dtor(_zend_compiler_globals * compiler_globals=0x00377398, void * * * tsrm_ls=0x00375d20) Line 487 C php5ts.dll!tsrm_shutdown() Line 180 + 0x6 bytes C php.exe!main(int argc=0x00000002, char * * argv=0x00375c48) Line 1342 C php.exe!__tmainCRTStartup() Line 597 + 0x17 bytes C kernel32.dll!_BaseProcessStart@4() + 0x23 bytes