|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-30 06:45 UTC] sniper@php.net
[2005-12-30 10:47 UTC] derick@php.net
[2006-01-03 18:14 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 08:00:01 2025 UTC |
Description: ------------ invalid php code from var_export contrary to documentation claims. Reproduce code: --------------- <? class query_result { public $affected_rows = 0; public $num_rows = 0; public $insert_id = 0; public $result = array(); //pdo result public $pointer = 0; } $test = array( "test" => new query_result() ); $dump = var_export($test, TRUE); file_put_contents("test.txt","<? ". $dump . "?>"); include("test.txt"); die(); ?> Expected result: ---------------- no php error Actual result: -------------- PHP Fatal error: Call to undefinied query_result::__set_state() in test.txt line 3