Req #26975 [Opn->Csd]: locking support in file_get_contents / file_put_contents

From: Date: Thu, 18 Nov 2010 23:24:26 +0000
Subject: Req #26975 [Opn->Csd]: locking support in file_get_contents / file_put_contents
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156189@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=26975&edit=1 ID: 26975 Updated by: jani@php.net Reported by: magg at mail dot com Summary: locking support in file_get_contents / file_put_contents -Status: Open +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: Filesystem function related Operating System: Linux PHP Version: * -Assigned To: +Assigned To: jani Block user comment: N Private report: N New Comment: Instead of file_get_contents, use stream_get_contents(). Previous Comments: ------------------------------------------------------------------------ [2005-08-11 19:58:50] nlopess@php.net file_put_contents exclusive lock was implemented (PHP 5.1). not sure about the shared lock in file_get_contents(). ------------------------------------------------------------------------ [2004-01-20 06:55:24] magg at mail dot com Description: ------------ It would be very nice to have a add a flag like USE_FLOCK or something on these functions. Default shared on get and exclusive on put. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=26975&edit=1

« previous php.bugs (#156189) next »