Bug #74901 [NEW]: Extensions cannot be loaded if PHP is executed in another path

From: Date: Tue, 11 Jul 2017 15:43:32 +0000
Subject: Bug #74901 [NEW]: Extensions cannot be loaded if PHP is executed in another path
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209989@lists.php.net to get a copy of this message
From: jan dot slabon at setasign dot com Operating system: Windows 10 Pro PHP version: 7.2.0alpha3 Package: *Configuration Issues Bug Type: Bug Bug description:Extensions cannot be loaded if PHP is executed in another path 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 bug report at https://bugs.php.net/bug.php?id=74901&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74901&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74901&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74901&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74901&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74901&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74901&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74901&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74901&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74901&r=support Expected behavior: https://bugs.php.net/fix.php?id=74901&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74901&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74901&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74901&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74901&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74901&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74901&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74901&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74901&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74901&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74901&r=mysqlcfg

« previous php.bugs (#209989) next »