PHP 4.0 Bug #8791 Updated: core dump when trying to get_class_vars on a class with a hash variable
| From: | sniper@php.net | Date: | Thu, 25 Jan 2001 01:30:22 +0000 |
| Subject: | PHP 4.0 Bug #8791 Updated: 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-44949@lists.php.net to get a copy of this message | ||
ID: 8791
Updated by: sniper
Reported By: rduarte@tvgrid.com
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
Fixed -> closed.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-01-23 11:11:50] rduarte@tvgrid.com
Nope. Must've been fixed between 4.0.3pl1 and 4.0.4pl1 because it doesn't core dump after
upgrading. I'm still not sure it does what I'd expect, though, since in my example,
I'd expect printing $val to output "Array" but it doesn't output anything. If I
print_r($val) it does show the contents of the array though. That's definitely good enough for
what I'm trying to do, but it seems like it's not 100%. Thanks a lot for the help!
---------------------------------------------------------------------------
[2001-01-19 21:35:53] sniper@php.net
Does this happen with PHP 4.0.4pl1 ? I tried with latest CVS and it didn't crash.
--Jani
---------------------------------------------------------------------------
[2001-01-18 13:37:28] rduarte@tvgrid.com
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 : $valn";
?>
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8791