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

From: Date: Wed, 29 Dec 2004 17:34:16 +0000
Subject: #31189 [Fbk->NoF]: usage of third argument of flock broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71246@lists.php.net to get a copy of this message
 ID:               31189
 Updated by:       sniper@php.net
 Reported By:      ivan_tihonov at mail dot ru
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Filesystem function related
 Operating System: debian/linux
 PHP Version:      4.3.9
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




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

[2004-12-20 00:01:10] derick@php.net

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

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

[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 (#71246) next »