note 124345 added to function.fopen
| From: | k-gun at git dot io | Date: | Sun, 27 Oct 2019 18:22:43 +0000 |
| Subject: | note 124345 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-212862@lists.php.net to get a copy of this message | ||
Seems not documented here but keep in mind, when $filename contains null byte (\0) then a TypeError
will be thrown with message such;
TypeError: fopen() expects parameter 1 to be a valid path, string given in ...
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.168 (proxied: 2001:67c:2660:425:1b::a)
----
Manual Page -- http://php.net/manual/en/function.fopen.php
Edit -- https://master.php.net/note/edit/124345
Del: integrated -- https://master.php.net/note/delete/124345/integrated
Del: useless -- https://master.php.net/note/delete/124345/useless
Del: bad code -- https://master.php.net/note/delete/124345/bad+code
Del: spam -- https://master.php.net/note/delete/124345/spam
Del: non-english -- https://master.php.net/note/delete/124345/non-english
Del: in docs -- https://master.php.net/note/delete/124345/in+docs
Del: other reasons-- https://master.php.net/note/delete/124345
Reject -- https://master.php.net/note/reject/124345
Search -- https://master.php.net/manage/user-notes.php