#50373 [Opn->Bgs]: imagepng doesn't doesn't have lockflags
| From: | pajoye@php.net | Date: | Thu, 03 Dec 2009 20:25:58 +0000 |
| Subject: | #50373 [Opn->Bgs]: imagepng doesn't doesn't have lockflags | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145382@lists.php.net to get a copy of this message | ||
ID: 50373
Updated by: pajoye@php.net
Reported By: rugkiks at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: GNU/Linux
PHP Version: 5.3.1
New Comment:
Same here, I don't see how we could do that for every simple file
related functions. Please follow Rasmus' advice here, best possible
solution.
Previous Comments:
------------------------------------------------------------------------
[2009-12-03 16:39:32] rasmus@php.net
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.
------------------------------------------------------------------------
[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