Bug #71089 [Asn->Csd]: No check to duplicate zend_extension (can raise segfault)
| From: | remi@php.net | Date: | Fri, 11 Dec 2015 12:22:21 +0000 |
| Subject: | Bug #71089 [Asn->Csd]: No check to duplicate zend_extension (can raise segfault) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197787@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71089&edit=1
ID: 71089
Updated by: remi@php.net
Reported by: remi@php.net
Summary: No check to duplicate zend_extension (can raise
segfault)
-Status: Assigned
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: irrevelant
PHP Version: 5.6.16
Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=410eacc1a9b50ec3cb6c5fc0ff252516d0c0a4f1
Log: Fix Bug #71089 No check to duplicate zend_extension
Previous Comments:
------------------------------------------------------------------------
[2015-12-11 11:52:41] remi@php.net
Description:
------------
You can load twice the same zend_extension...
Which can create very strange bug
(including segfault in zend_interned_strings_dtor)
Test script:
---------------
$ php -n -d zend_extension=opcache.so -d zend_extension=opcache.so -m
Expected result:
----------------
PHP Warning: Module 'opcache' already loaded in Unknown on line 0
(like for standard extension)
Actual result:
--------------
...
[Zend Modules]
Zend OPcache
Zend OPcache
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71089&edit=1