php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61029 '@' operator before a function call causes php to hang till max-exec-time
Submitted: 2012-02-09 15:36 UTC Modified: 2012-02-12 12:29 UTC
From: yonni dot m at zend dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.4.0RC7 OS: MacOS 10.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yonni dot m at zend dot com
New email:
PHP Version: OS:

 

 [2012-02-09 15:36 UTC] yonni dot m at zend dot com
Description:
------------
Steps to reproduce:
Php 5.4RC7 on MACOS 10.6
Execute script in test script
doesn't matter if index.html is actually there
Note php error logs

Test script:
---------------
<?php @file_get_contents('index.html');

Expected result:
----------------
Script should execute and complete immediately

Actual result:
--------------
Script hangs until max-exec-time is reached and fails with a fatal error:
PHP Fatal error:  Maximum execution time of 10 seconds exceeded

Remove the @ and the script executes correctly

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-09 16:19 UTC] laruence@php.net
I can not reproduce this,  could you help us to find more infos? 
like:
run the test script. when it hanged, put the php process background (ctrl+z, 
then $bg).

find the process's pid.

gdb --pid=php's pid

then gdb>bt

paste the backtrace to here. thanks
 [2012-02-09 16:19 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2012-02-12 12:29 UTC] yonni dot m at zend dot com
-Status: Feedback +Status: Closed
 [2012-02-12 12:29 UTC] yonni dot m at zend dot com
I misreported this issue, the actual problem involved common resources used by Zend's extensions and php itself. The real underlying problem was reported to the internals mailing list for continued handling.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 02:01:29 2024 UTC