php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75370 Webserver hangs on valid PHP text
Submitted: 2017-10-12 22:34 UTC Modified: 2017-10-12 23:24 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ksours at internetbrands dot com Assigned:
Status: Closed Package: opcache
PHP Version: 7.2.0RC4 OS: CentOS Linux release 7.4
Private report: No CVE-ID: None
 [2017-10-12 22:34 UTC] ksours at internetbrands dot com
Description:
------------
The symptoms are similar to 75255, though the code to reproduce is different.  We upgraded to RC4 and are still experiencing the problem.  We get either an indefinite hang (the behavior from the test script) or an invalid server response error depending on what code is included.  This only happens when the OPCache is active.  I am also able to reproduce on Windows7 against PHP7.2b3 so it may not be strictly a Unix/Centos issue.

Note that like 75255 minor and random changes to the code make the problem go away.  

Test script:
---------------
<?php
function test()
{
  $success = true;
  $success = $success AND true;
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-12 23:24 UTC] ksours at internetbrands dot com
-Operating System: entOS Linux release 7.4 +Operating System: CentOS Linux release 7.4
 [2017-10-12 23:24 UTC] ksours at internetbrands dot com
Fixed typo in OS
 [2017-10-13 10:19 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e4f7ff9c0f35cb69795227296e8f902f88d124a5
Log: Fixed bug #75370 (Webserver hangs on valid PHP text)
 [2017-10-13 10:19 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC