Bug #76843 [Opn->Dup]: php 7.2-7.3 segfault when opcache extension loaded and php_uname disabled
| From: | cmb@php.net | Date: | Wed, 05 Sep 2018 10:30:54 +0000 |
| Subject: | Bug #76843 [Opn->Dup]: php 7.2-7.3 segfault when opcache extension loaded and php_uname disabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216888@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76843&edit=1
ID: 76843
Updated by: cmb@php.net
Reported by: dmitry dot novitsky at ihc dot ru
Summary: php 7.2-7.3 segfault when opcache extension loaded
and php_uname disabled
-Status: Open
+Status: Duplicate
Type: Bug
Package: opcache
Operating System: CentOS 6
PHP Version: 7.2.9
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This looks like a duplicate of bug #76796.
Previous Comments:
------------------------------------------------------------------------
[2018-09-05 06:22:23] dmitry dot novitsky at ihc dot ru
Description:
------------
Hello
We have found that joomla on php 7.2 + opcache + lsphp recieved 503 error (segmentation fault) if
php_uname exist in disable functions in php.ini
LSPHP-binary:
cat php.ini
disable_functions = php_uname
zend_extension = opcache.so
memory_limit = 1024M
/usr/local/php72/bin/lsphp -c /home/p503511/php.ini test.php
Warning: (null)() has been disabled for security reasons in Unknown on line 0
Segmentation fault
PHP-BINARY:
/usr/local/php72/bin/php -c /home/p503511/php.ini test.php
Warning: php_uname() has been disabled for security reasons in test.php on line 5
Warning: php_uname() has been disabled for security reasons in test.php on line 5
If execute script through apache or litespeed - in both tests - segfaults
Litespeed support reply:
"Hello Dmitry,
This seems like a bug inside of PHP itself and should be reported at php.net. I tested on both
Apache and LSWS and they both give 503 errors. The only difference is when I run via command line,
regular php doesn't print out an error when lsphp binary does. Though running the test script
in a browser I get the same results for Apache and LSWS.
Best Regards,
Jonathan Kagan"
Test script:
---------------
cat test.php
<?php
function getStatsData()
{
return array(
'server_os' => php_uname('s') . ' ' . php_uname('r')
);
}
getStatsData();
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76843&edit=1