#31189 [Opn->Fbk]: usage of third argument of flock broken
ID: 31189
Updated by: derick@php.net
Reported By: ivan_tihonov at mail dot ru
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: debian/linux
PHP Version: 4.3.9
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-12-19 23:26:53] ivan_tihonov at mail dot ru
Description:
------------
when using TRUE as third arg to flock fatal error happend:
Fatal error: Only variables can be passed by reference
debian/sarge package php4 version 4.3.9-2
Reproduce code:
---------------
<?php
flock(0, LOCK_EX, TRUE);
?>
Expected result:
----------------
Warning: flock(): supplied argument is not a valid stream resource in
a.php on line 2
Actual result:
--------------
Fatal error: Only variables can be passed by reference in a.php on line
2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31189&edit=1
Thread (3 messages)