php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31189 usage of third argument of flock broken
Submitted: 2004-12-19 23:26 UTC Modified: 2004-12-29 18:34 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ivan_tihonov at mail dot ru Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.9 OS: debian/linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ivan_tihonov at mail dot ru
New email:
PHP Version: OS:

 

 [2004-12-19 23:26 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-29 18:34 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 15:01:35 2024 UTC