PHP 4.0 Bug #8791: core dump when trying to get_class_vars on a class with a hash variable
| From: | rduarte at tvgrid dot com | Date: | Thu, 18 Jan 2001 18:37:28 +0000 |
| Subject: | PHP 4.0 Bug #8791: core dump when trying to get_class_vars on a class with a hash variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44505@lists.php.net to get a copy of this message | ||
From: rduarte@tvgrid.com
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: Reproduceable crash
Bug description: core dump when trying to get_class_vars on a class with a hash variable
TEST SCRIPT:
<?
class xyz {
var $x = array('a' => 'df', 'b' => 'dd',
'c' => 'fd');
}
$arr = get_class_vars('xyz');
while(list($key,$val) = each($arr)) print "Properties $key has value : $val\n";
?>
CONFIG LINE:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-track-vars'
'--without-gd' '--with-xml' '--without-ldap'
'--without-imap'
Sorry, I couldn't get a gdb backtrace because my php wasn't compiled with the debug stuff
turned on. I suspect that you'd be able to reproduce this easily though. Let me know if you
need any more information from me.
--
Edit Bug report at: http://bugs.php.net/?id=8791&edit=1