php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79650 php-win.exe 100% cpu lockup
Submitted: 2020-05-28 19:15 UTC Modified: 2020-05-31 11:31 UTC
Votes:2
Avg. Score:2.5 ± 1.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lzqhwo at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.3 OS: Windows 10
Private report: No CVE-ID: None
 [2020-05-28 19:15 UTC] lzqhwo at gmail dot com
Description:
------------
php-win.exe locks up with 100% cpu usage when a significant amount of data is echoed.

Test script:
---------------
$str = "";
for ($x=0; $x<500; $x++) {
	$str .= "aaa bbb ccc ";
}
echo wordwrap($str);

Expected result:
----------------
php-win.exe should execute script and complete with no output displayed.

Actual result:
--------------
php-win.exe locks up causing 100% cpu usage.

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-05-31 11:31 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: *General Issues +Package: Scripting Engine problem -PHP Version: 7.4.6 +PHP Version: 7.3 -Assigned To: +Assigned To: cmb
 [2020-05-31 11:31 UTC] cmb@php.net
> php-win.exe should execute script and complete with no output
> displayed.

Indeed. That is the behavior of PHP 7.2 and likely previous
versions as well.
 [2020-05-31 11:32 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: Fix #79650: php-win.exe 100% cpu lockup
On GitHub:  https://github.com/php/php-src/pull/5652
Patch:      https://github.com/php/php-src/pull/5652.patch
 [2020-06-01 11:27 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=923c45bdcaebf317ce84a4bfb3fa39beae1bf952
Log: Fix #79650: php-win.exe 100% cpu lockup
 [2020-06-01 11:27 UTC] cmb@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC