#36906 [Opn->Fbk]: stream_context_get_options cause segfault
| From: | mike@php.net | Date: | Wed, 05 Apr 2006 20:45:52 +0000 |
| Subject: | #36906 [Opn->Fbk]: stream_context_get_options cause segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95364@lists.php.net to get a copy of this message | ||
ID: 36906
Updated by: mike@php.net
Reported By: sqchen at citiz dot net
-Status: Open
+Status: Feedback
Bug Type: Streams related
Operating System: redhat 7.3
PHP Version: 5.1.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Cannot reproduce.
Previous Comments:
------------------------------------------------------------------------
[2006-03-29 08:02:59] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36906&edit=1