From:             francesco dot spegni at gmail dot com
Operating system: ubuntu
PHP version:      5.2.6
PHP Bug Type:     DOM XML related
Bug description:  DOMDocument::__set_state function does not exists

Description:
------------
please, my php version is not actually 5.2.6, but PHP 5.2.4-2ubuntu5 with
Suhosin-Patch 0.9.6.2. i'm sorry to have cheated, but i was not able to
install the last version without messing my system, and looking for the
changelogs i didn't find any reference to a problem like the one i'm
signaling. to me, it seems that the version i have is the last one in the
ubuntu's repositories.

when i execute the following code, var_export produce a
DOMDocument::__set_state call, but the eval function says that
DOMDocument::__set_state function does not exist.

Fatal error: Call to undefined method DOMDocument::__set_state() in
/home/spegni/Eclipse/workspace/automa_interpreter/test_bug.php(8) :
eval()'d code on line 1

i've searched through the documentation, finding nothing interesting and
to me it seems a buggy behavior. let me know if i'm wrong. many thanks in
advance.

Reproduce code:
---------------
<?php
$foo = new DOMDocument();
$strCode = "\$object = " . var_export($foo, TRUE) . "; return 1;";
print "execute: \n\n".$strCode."\n";
$resEval = eval($strCode);
print "eval returned: " . $resEval . "\n";
?>


Expected result:
----------------
i expect the eval code to be executed without error and return result "1"

Actual result:
--------------
Fatal error: Call to undefined method DOMDocument::__set_state() in
/home/spegni/Eclipse/workspace/automa_interpreter/test_bug.php(8) :
eval()'d code on line 1


-- 
Edit bug report at http://bugs.php.net/?id=44926&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44926&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44926&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44926&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44926&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44926&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44926&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44926&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44926&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44926&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44926&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44926&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44926&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44926&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44926&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44926&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44926&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44926&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44926&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44926&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44926&r=mysqlcfg

Reply via email to