Bug #75255 [NEW]: Request hangs and not finish

From: Date: Mon, 25 Sep 2017 19:14:25 +0000
Subject: Bug #75255 [NEW]: Request hangs and not finish
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211354@lists.php.net to get a copy of this message
From:             hmayak dot tigranyan at gmail dot com
Operating system: ubuntu14.04.1
PHP version:      7.1.9
Package:          *General Issues
Bug Type:         Bug
Bug description:Request hangs and not finish

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.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=75255&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75255&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75255&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75255&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75255&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75255&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75255&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75255&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75255&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75255&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75255&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75255&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75255&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75255&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75255&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75255&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75255&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75255&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75255&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75255&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75255&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#211354) next »