php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74735 7.2.0alpha1 overwrites 7.1 extensions under 20160303 ext dir
Submitted: 2017-06-09 22:28 UTC Modified: 2017-06-13 11:58 UTC
From: bugs dot php dot net at majkl578 dot cz Assigned: cmb (profile)
Status: Closed Package: Dynamic loading
PHP Version: 7.2.0alpha1 OS: Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugs dot php dot net at majkl578 dot cz
New email:
PHP Version: OS:

 

 [2017-06-09 22:28 UTC] bugs dot php dot net at majkl578 dot cz
Description:
------------
PHP 7.2.0alpha1 overwrites PHP 7.1 extensions under the 20160303 API version. This is a serious issue as it breaks previous extensions, i.e. opcache complains about undefined symbols under 7.1.

Test script:
---------------
./configure --disable-all --enable-cli
make -j `nproc`
sapi/cli/php -n -i | grep extension_dir

Expected result:
----------------
7.1 should have different API version

Actual result:
--------------
extension dir refers to 20160303 API

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-09 22:33 UTC] spam2 at rhsoft dot net
Just define Prefix or extensiondir if you need more than one php version on your system - this is hardly a bug but a user error
 [2017-06-09 22:39 UTC] bugs dot php dot net at majkl578 dot cz
I don't think so - extension API should be bumped for minor versions. Each minor's extensions are installed in a versioned folder by default.

See here for:
7.1: https://github.com/php/php-src/commit/1ce0187659176c8b765f55656881600bc2f30958
7.0: https://github.com/php/php-src/commit/dcbbf7c38d45fd06752b7298ed765733ca2f8d41
 [2017-06-12 10:34 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: pollita
 [2017-06-12 10:34 UTC] cmb@php.net
Sara, can you have a look at this, please?
 [2017-06-13 11:58 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: pollita +Assigned To: cmb
 [2017-06-13 11:58 UTC] cmb@php.net
PR #2574 has been merged – closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 09:01:35 2025 UTC