note 98483 added to function.var-export
| From: | 4n4jmza02 at sneakemail dot com | Date: | Thu, 17 Jun 2010 23:50:41 +0000 |
| Subject: | note 98483 added to function.var-export | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170228@lists.php.net to get a copy of this message | ||
I learned the hard way that if var_export encounters a resource handle it exports it as
"NULL", even if it is a valid handle. The documentation states that a handle cannot be
exported, but it does not describe what happens if you try to do so anyway.
I had been using var_export in some debugging code while tracing a problem with a resource handle
not being generated and ended up thinking that null handles were still being generated long after
the problem had been fixed.
----
Server IP: 208.69.120.55
Probable Submitter: 72.55.216.246
----
Manual Page -- http://www.php.net/manual/en/function.var-export.php
Edit -- https://master.php.net/note/edit/98483
Del: integrated -- https://master.php.net/note/delete/98483/integrated
Del: useless -- https://master.php.net/note/delete/98483/useless
Del: bad code -- https://master.php.net/note/delete/98483/bad+code
Del: spam -- https://master.php.net/note/delete/98483/spam
Del: non-english -- https://master.php.net/note/delete/98483/non-english
Del: in docs -- https://master.php.net/note/delete/98483/in+docs
Del: other reasons-- https://master.php.net/note/delete/98483
Reject -- https://master.php.net/note/reject/98483
Search -- https://master.php.net/manage/user-notes.php