Bug #74901 [Opn->Dup]: Extensions cannot be loaded if PHP is executed in another path
| From: | requinix@php.net | Date: | Tue, 11 Jul 2017 15:47:48 +0000 |
| Subject: | Bug #74901 [Opn->Dup]: Extensions cannot be loaded if PHP is executed in another path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209990@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74901&edit=1
ID: 74901
Updated by: requinix@php.net
Reported by: jan dot slabon at setasign dot com
Summary: Extensions cannot be loaded if PHP is executed in
another path
-Status: Open
+Status: Duplicate
Type: Bug
Package: *Configuration Issues
Operating System: Windows 10 Pro
PHP Version: 7.2.0alpha3
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #74866.
Previous Comments:
------------------------------------------------------------------------
[2017-07-11 15:43:29] jan dot slabon at setasign dot com
Description:
------------
When running php from another path the extensions cannot be loaded in alpha3 if extension_dir is a
relative path (extension_dir = "ext"). This works in all versions before.
Test script:
---------------
When calling this in a CMD window:
C:\Sandbox\tests\php7.2-bug>c:\php\7.2.0alpha3-nts\php test2.php
Several warnings will arise because libraries cannot be loaded.
When calling the script the other way round the extensions are loaded without a problem:
C:\php\7.2.0alpha3-nts>php c:\Sandbox\tests\php7.2-bug\test2.php
Actual result:
--------------
PHP Warning: Cannot access dynamic library 'gd2' (tried : ext\gd2, ext\php_gd2.dll) in
Unknown on line 0
Warning: Cannot access dynamic library 'gd2' (tried : ext\gd2, ext\php_gd2.dll) in Unknown
on line 0
...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74901&edit=1