|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-29 08:02 UTC] sqchen at citiz dot net
Description:
------------
stream_context_get_options cause segfault, php version is 5.1.2
Reproduce code:
---------------
<?php
$dir=opendir(dirname(__FILE__));
stream_context_set_option($dir, "pathname", "path", "/u/quans/");
var_dump(stream_context_get_options($dir));
?>
Actual result:
--------------
array(1) {
["pathname"]=>
array(1) {
["path"]=>
string(9) "/u/quans/"
}
}
Segmentation fault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
(gdb) backtrace #0 0x0823cdfb in php_stream_context_del_link (context=0x847f3f4, stream=0x846d304) at /home/spring/php-5.1.2/main/streams/streams.c:1988 #1 0x0823d127 in _php_stream_free (stream=0x846d304, close_options=11) at /home/spring/php-5.1.2/main/streams/streams.c:326 #2 0x0823d81c in stream_resource_regular_dtor (rsrc=0x5a5a5a5a) at /home/spring/php-5.1.2/main/streams/streams.c:1373 #3 0x0827a3bf in list_entry_destructor (ptr=0x847f104) at /home/spring/php-5.1.2/Zend/zend_list.c:184 #4 0x08278d88 in zend_hash_apply_deleter (ht=0x83c7800, p=0x847f0ac) at /home/spring/php-5.1.2/Zend/zend_hash.c:574 #5 0x08278e57 in zend_hash_graceful_reverse_destroy (ht=0x83c7800) at /home/spring/php-5.1.2/Zend/zend_hash.c:640 #6 0x0826d46e in zend_deactivate () at /home/spring/php-5.1.2/Zend/zend.c:860 #7 0x08228455 in php_request_shutdown (dummy=0x0) at /home/spring/php-5.1.2/main/main.c:1284 #8 0x082eea4b in main (argc=2, argv=0xbf9a6ed4) at /home/spring/php-5.1.2/sapi/cli/php_cli.c:1230