Bug #76843 [NEW]: php 7.2-7.3 segfault when opcache extension loaded and php_uname disabled
| From: | dmitry dot novitsky at ihc dot ru | Date: | Wed, 05 Sep 2018 06:22:23 +0000 |
| Subject: | Bug #76843 [NEW]: php 7.2-7.3 segfault when opcache extension loaded and php_uname disabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-216887@lists.php.net to get a copy of this message | ||
From: dmitry dot novitsky at ihc dot ru
Operating system: CentOS 6
PHP version: 7.2.9
Package: opcache
Bug Type: Bug
Bug description:php 7.2-7.3 segfault when opcache extension loaded and php_uname disabled
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 bug report at https://bugs.php.net/bug.php?id=76843&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76843&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76843&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76843&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76843&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76843&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76843&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76843&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76843&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76843&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76843&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76843&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76843&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76843&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76843&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76843&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76843&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76843&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76843&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76843&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76843&r=mysqlcfg