php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54433 API Module differences should show actual module paths.
Submitted: 2011-03-31 15:14 UTC Modified: -
Votes:3
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: RQuadling at GMail dot com Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 5.3SVN-2011-03-31 (snap) OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: RQuadling at GMail dot com
New email:
PHP Version: OS:

 

 [2011-03-31 15:14 UTC] RQuadling at GMail dot com
Description:
------------
Hi.

If a user has mixed the versions of the extensions and PHP, the presence of a 
physical filepath for the extensions and php in the resulting error message 
would help identify the problem quicker.

I've created a small patch to ext/standard/dl.c which simply appends the path of 
the extension and the sapi_module.executable_location to the lines detailing the 
conflicting API numbers.

This isn't a complete fix as the sapi_module.executable_location may not be 
fully valid in all circumstances (see http://bugs.php.net/bug.php?id=54432).

Copy an inappropriate module into the extension folder.

Running ...

C:\php5\php.exe -dextension=php_soap.dll -ddisplay_startup_errors=1 -m

outputs ...

Warning: PHP Startup: soap : Unable to initialize module
Module compiled with module API=20060613 (C:\PHP5\ext\php_soap.dll)
PHP    compiled with module API=20090626 (C:\PHP5\php.exe)
These options need to match
 in Unknown on line 0



Patches

API_Module_Differences (last revision 2011-03-31 13:15 UTC by RQuadling at GMail dot com)

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 18:01:28 2024 UTC