#33203 [Opn]: Document limitations of var_export()

From: Date: Tue, 31 May 2005 14:02:47 +0000
Subject: #33203 [Opn]: Document limitations of var_export()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368380@lists.php.net to get a copy of this message
ID: 33203 Updated by: mfischer@php.net Reported By: mfischer@php.net Status: Open Bug Type: Documentation problem PHP Version: Irrelevant New Comment: According to http://bugs.php.net/bug.php?id=29361 it also doesn't supported objects containing references to other objects. This should be documented too. Previous Comments: ------------------------------------------------------------------------ [2005-05-31 16:01:37] mfischer@php.net Description: ------------ A limitation of var_export() is not documented. It does not support resources. The manual says "generated valid PHP code" which is fine. But it should be noted that resources are not supported, i.e. they're not reflected as resources in var_export anymore. Reproduce code: --------------- $ php -r '$f = fopen("/", "r"); var_export($f);' NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33203&edit=1

« previous php.doc (#969368380) next »