ID:               42468
 User updated by:  daan at react dot nl
 Reported By:      daan at react dot nl
 Status:           Assigned
 Bug Type:         Streams related
 Operating System: *
 PHP Version:      5.2CVS-2007-08-29
 Assigned To:      iliaa
 New Comment:

Ah it does not say so anywhere in the streams documentation that
locking is (or is not) supported - or is this tied in with one of the
stream attributes as listed on
http://php.net/manual/en/wrappers.compression.php ?


Previous Comments:
------------------------------------------------------------------------

[2007-08-29 11:46:18] [EMAIL PROTECTED]

Ilia, this should output an error when a wrapper does not support
setting options. You shouldn't try locking if a wrapper doesn't support
it.

------------------------------------------------------------------------

[2007-08-29 11:03:11] daan at react dot nl

Description:
------------
When using the LOCK_EX flag for the file_put_contents function, and the
filename is a compression stream, no data is written.

Conversely, it does work when the flag is not added, or when no
compression is used.

Reproduce code:
---------------
<?php
        file_put_contents('compress.zlib://test.txt', 'blabla', LOCK_EX);

        var_dump(file_get_contents('compress.zlib://test.txt'));


Expected result:
----------------
The string 'blabla'

Actual result:
--------------
An empty string


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42468&edit=1

Reply via email to