Bug #71089 [Com]: No check to duplicate zend_extension (can raise segfault)

From: Date: Fri, 11 Dec 2015 12:34:44 +0000
Subject: Bug #71089 [Com]: No check to duplicate zend_extension (can raise segfault)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197788@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 Comment by: remi@php.net Reported by: remi@php.net Summary: No check to duplicate zend_extension (can raise segfault) 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: New comment is: "Cannot load Zend OPcache - extension already loaded" Previous Comments: ------------------------------------------------------------------------ [2015-12-11 12:23:45] remi@php.net 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 ------------------------------------------------------------------------ [2015-12-11 12:22:20] remi@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#197788) next »