Can somebody with karma check in the following patch?
If zend_open fails for require_once or include_oncde, file_handle is
not defined and can't be used for the error/warning message.
Changed to inc_filename->value.str.val which is what is passed to zend_open.
Thanks,
Brian
Any example code?
--Jani
Can somebody with karma check in the following patch?
If zend_open fails for require_once or include_oncde, file_handle is
not defined and can't be used for the error/warning message.
Changed to inc_filename->value.str.val which is what is passed to zend_open.Thanks,
Brian
--
<- For Sale!
<?PHP
include_once( "foo.php" );
?>
Since foo.php doesn't exists, zend_open will fail and then try to send a
warning message using file_handle.filename. Since zend_open failed
file_handle.filename will still be in its initial state of "file_handle =
{0}". zend_message_dispatcher is called with file_handle.filename, which
calls php_message_handler_for_zend, which calls php_strip_url_passwd, which
core dumps because *file_handle.filename is a bad address.
Brian
Any example code? --JaniCan somebody with karma check in the following patch?
If zend_open fails for require_once or include_oncde, file_handle is
not defined and can't be used for the error/warning message.
Changed to inc_filename->value.str.val which is what is passed to zend_open.Thanks,
Brian
--
<- For Sale!
Your test script works fine for me.
-Sterling
<?PHP
include_once( "foo.php" );
?>Since foo.php doesn't exists, zend_open will fail and then try to send a
warning message using file_handle.filename. Since zend_open failed
file_handle.filename will still be in its initial state of "file_handle =
{0}". zend_message_dispatcher is called with file_handle.filename, which
calls php_message_handler_for_zend, which calls php_strip_url_passwd, which
core dumps because *file_handle.filename is a bad address.Brian
Any example code? --JaniCan somebody with karma check in the following patch?
If zend_open fails for require_once or include_oncde, file_handle is
not defined and can't be used for the error/warning message.
Changed to inc_filename->value.str.val which is what is passed to zend_open.Thanks,
Brian
--
<- For Sale! ->
--
"The computer programmer is a creator of universes for which he
alone is responsible. Universes of virtually unlimited complexity
can be created in the form of computer programs."
- Joseph Weizenbaum
Did you get a warning that foo.php couldn't be included? If not try to
include_once a file that doesn't exists. The patch is for PHP_4_3 and not cvs
head.
Brian
Your test script works fine for me.
-Sterling
<?PHP
include_once( "foo.php" );
?>Since foo.php doesn't exists, zend_open will fail and then try to send a
warning message using file_handle.filename. Since zend_open failed
file_handle.filename will still be in its initial state of "file_handle =
{0}". zend_message_dispatcher is called with file_handle.filename, which
calls php_message_handler_for_zend, which calls php_strip_url_passwd,
which
core dumps because *file_handle.filename is a bad address.Brian
Any example code? --JaniCan somebody with karma check in the following patch?
If zend_open fails for require_once or include_oncde, file_handle is
not defined and can't be used for the error/warning message.
Changed to inc_filename->value.str.val which is what is passed to
zend_open.Thanks,
Brian
--
<- For Sale! ->--
"The computer programmer is a creator of universes for which he
alone is responsible. Universes of virtually unlimited complexity
can be created in the form of computer programs."
- Joseph Weizenbaum
Did you get a warning that foo.php couldn't be included? If not try to
include_once a file that doesn't exists. The patch is for PHP_4_3 and not cvs
head.
Ok, I just tried with CVS head.
-Sterling
"Whether you think you can or think you can't -- you are right."
- Henry Ford