#48522 [Opn->Csd]: file_put_contents() flags FILE_APPEND and LOCK_EX are mutually exclusive

From: Date: Wed, 24 Jun 2009 10:53:02 +0000
Subject: #48522 [Opn->Csd]: file_put_contents() flags FILE_APPEND and LOCK_EX are mutually exclusive
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2404@lists.php.net to get a copy of this message
ID: 48522 Updated by: rasmus@php.net Reported By: gwynne@php.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: * PHP Version: Irrelevant 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: ------------------------------------------------------------------------ [2009-06-10 18:05:55] gwynne@php.net Description: ------------ Checking out the source for PHP 5.3, one sees: php-5.3/ext/standard/file.c:614 if (flags & PHP_FILE_APPEND) { mode[0] = 'a'; } else if (flags & LOCK_EX) { Obviously FILE_APPEND and LOCK_EX are mutually exclusive. This is not documented! Reproduce code: --------------- --- From manual page: function.file-put-contents --- Expected result: ---------------- ... It's a documentation bug. Actual result: -------------- Once again I say... it's a DOCS bug! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48522&edit=1

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