php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75255 Request hangs and not finish
Submitted: 2017-09-25 19:14 UTC Modified: 2017-09-26 11:08 UTC
From: hmayak dot tigranyan at gmail dot com Assigned:
Status: Closed Package: opcache
PHP Version: 7.1.9 OS: ubuntu14.04.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hmayak dot tigranyan at gmail dot com
New email:
PHP Version: OS:

 

 [2017-09-25 19:14 UTC] hmayak dot tigranyan at gmail dot com
Description:
------------
On Ubuntu installed php7.1.9 (PHP Version 7.1.9-1+ubuntu14.04.1+deb.sury.org+1) no special configuration. Have one file and request to that file not return result, apache version is Apache/2.4.7 (Ubuntu). If I chnage anything  in code it work properly. If disable opcode than it work fine.



Test script:
---------------
<?php

class PlanService
{


    public function generatePlanImage()
    {
        if ($abc > 5) {
            $abc = 5;
        }

        for ($row = 0; $row < $abc; $row++) {

            for ($col = 0; $col < $numCols; $col++) {

                $this->getPossibleRatio( $abc);

            }
        }

    }

    public function getPossibleRatio( $abc)
    {
    }

}
var_dump('worked');exit;

Expected result:
----------------
expected to get response

Actual result:
--------------
apache not return any result,CPU is going to 99% and  request hangs.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-25 23:03 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2017-09-25 23:03 UTC] cmb@php.net
> If disable opcode than it work fine.

Do you mean OPcache? If so, please change the status to "open", and the package
to "Opcache".
 [2017-09-26 06:32 UTC] hmayak dot tigranyan at gmail dot com
-Status: Feedback +Status: Open -Package: *General Issues +Package: opcache
 [2017-09-26 06:32 UTC] hmayak dot tigranyan at gmail dot com
Changed package to Opcache
 [2017-09-26 11:08 UTC] cmb@php.net
-Status: Assigned +Status: Open -Assigned To: cmb +Assigned To:
 [2017-09-27 14:18 UTC] dmitry@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1c68d63f35aecc2aa602ffc429688ed43ffb92b6
Log: Fixed bug #75255 (Request hangs and not finish)
 [2017-09-27 14:18 UTC] dmitry@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 10:01:29 2024 UTC