note 111452 added to function.stream-context-create
| From: | ksloan at 2dialog dot com | Date: | Thu, 21 Feb 2013 02:28:26 +0000 |
| Subject: | note 111452 added to function.stream-context-create | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193709@lists.php.net to get a copy of this message | ||
So when trying to troubleshoot a stream, I was able to var_dump and it came back as expected, but it
turns out var_export does not work as intended. It always comes back as null.
Use is_resource()
file_put_contents( "/tmp/debug", var_export( is_resource($stream), true ) );
to get a true/false if the stream is getting made or not.
----
Server IP: 69.147.83.199
Probable Submitter: 67.66.165.131
----
Manual Page -- http://php.net/manual/en/function.stream-context-create.php
Edit -- https://master.php.net/note/edit/111452
Del: integrated -- https://master.php.net/note/delete/111452/integrated
Del: useless -- https://master.php.net/note/delete/111452/useless
Del: bad code -- https://master.php.net/note/delete/111452/bad+code
Del: spam -- https://master.php.net/note/delete/111452/spam
Del: non-english -- https://master.php.net/note/delete/111452/non-english
Del: in docs -- https://master.php.net/note/delete/111452/in+docs
Del: other reasons-- https://master.php.net/note/delete/111452
Reject -- https://master.php.net/note/reject/111452
Search -- https://master.php.net/manage/user-notes.php