Doc #53510 [Opn->Csd]: Need to have a notice about ===

From: Date: Sat, 11 Dec 2010 04:42:36 +0000
Subject: Doc #53510 [Opn->Csd]: Need to have a notice about ===
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5647@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53510&edit=1 ID: 53510 Updated by: dtajchreber@php.net Reported by: zgardner at allofe dot com Summary: Need to have a notice about === -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Windows Vista PHP Version: 5.2.14 -Assigned To: +Assigned To: dtajchreber Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-12-11 05:41:24] dtajchreber@php.net Automatic comment from SVN on behalf of dtajchreber Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=306217 Log: Fixed bug #53510 Need to have a notice about === ------------------------------------------------------------------------ [2010-12-09 16:31:36] zgardner at allofe dot com Description: ------------ --- From manual page: http://www.php.net/function.file-put-contents#Return Values --- If the number of bytes written was 0, then checking if the return value == false would be true. There needs to be a note in here about the === operator like there are for other functions that return integers on success and boolean false on failure. Test script: --------------- <? if(file_put_contents("some_file.txt", "") == false) { echo "FAILED"; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53510&edit=1

« previous php.doc.bugs (#5647) next »