#31189 [Opn->Fbk]: usage of third argument of flock broken

From: Date: Sun, 19 Dec 2004 23:01:11 +0000
Subject: #31189 [Opn->Fbk]: usage of third argument of flock broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70648@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#70648) next »