ID: 50373 Updated by: [email protected] Reported By: rugkiks at gmail dot com Status: Open Bug Type: GD related Operating System: GNU/Linux PHP Version: 5.3.1 New Comment:
I'm curious why you want this. Locking is almost never the right solution for a web app. Writing to a temp file and then atomically rename it into its final destination. Adding locks to every library function PHP can call that can potentially write files is not feasible. Previous Comments: ------------------------------------------------------------------------ [2009-12-03 12:31:19] rugkiks at gmail dot com Description: ------------ http://php.net/imagepng Apparently there is not way to lock files while writing to them. I'd like to see a similar behavior like the flags in http://php.net/file_put_contents Maybe the file actually get's locked. I can't test it. Reproduce code: --------------- --- >From manual page: function.imagepng#Description --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50373&edit=1
