php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74901 Extensions cannot be loaded if PHP is executed in another path
Submitted: 2017-07-11 15:43 UTC Modified: 2017-07-11 15:47 UTC
From: jan dot slabon at setasign dot com Assigned:
Status: Duplicate Package: *Configuration Issues
PHP Version: 7.2.0alpha3 OS: Windows 10 Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 30 = ?
Subscribe to this entry?

 
 [2017-07-11 15:43 UTC] 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
...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-11 15:47 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2017-07-11 15:47 UTC] requinix@php.net
Duplicate of bug #74866.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC