php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64022 php_suffix does not match when "php" exists in path
Submitted: 2013-01-18 14:38 UTC Modified: 2013-06-04 19:22 UTC
Votes:24
Avg. Score:4.1 ± 1.1
Reproduced:23 of 23 (100.0%)
Same Version:1 (4.3%)
Same OS:2 (8.7%)
From: spero dot shiropetto at gmail dot com Assigned:
Status: No Feedback Package: PECL (PECL)
PHP Version: 5.4.11 OS: RHEL 6.3
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: spero dot shiropetto at gmail dot com
New email:
PHP Version: OS:

 

 [2013-01-18 14:38 UTC] spero dot shiropetto at gmail dot com
Description:
------------
Receive a warning when attempting to install a pecl package if "php" already exists in the directory path.

WARNING: php_bin /opt/php-5.4.11/bin/php appears to have a suffix -5.4.11/bin/php, but config variable php_suffix does not match

./configure --prefix=/opt/php-5.4.11 ##failes
./configure --prefix=/opt/p-5.4.11   ##succeeds 



./configure \
      --prefix=/opt/p-5.4.11  \
      --with-libdir=lib64 \
      --enable-cli \
      --enable-cgi \
      --disable-debug \
      --disable-short-tags \
      --enable-shared \
      --with-apxs2=/usr/sbin/apxs
make clean && make && make install
=================OUTPUT
Installing PEAR environment:      /opt/p-5.4.11/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.4


pecl install pecl_http
===========OUTPUT
pecl install pecl_http
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
..................................................................................................................................................................................done: 1,026,048 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] :

Expected result:
----------------
pecl should not match the first "php" it sees to determine the php_suffix. packages should install regardless of where PHP is.


pecl install pecl_http
===========OUTPUT
pecl install pecl_http
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
..................................................................................................................................................................................done: 1,026,048 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] :

Actual result:
--------------
./configure \
      --prefix=/opt/php-5.4.11  \
      --with-libdir=lib64 \
      --enable-cli \
      --enable-cgi \
      --disable-debug \
      --disable-short-tags \
      --enable-shared \
      --with-apxs2=/usr/sbin/apxs
make clean && make && make install
      
=================OUTPUT
Installing PEAR environment:      /opt/php-5.4.11/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.4
Wrote PEAR system config file at: /opt/php-5.4.11/etc/pear.conf
You may want to add: /opt/php-5.4.11/lib/php to your php.ini include_path
/home/user/Source/php/php-5.4.11/build/shtool install -c ext/phar/phar.phar /opt/php-5.4.11/bin
ln -s -f /opt/php-5.4.11/bin/phar.phar /opt/php-5.4.11/bin/phar
Installing PDO headers:          /opt/php-5.4.11/include/php/ext/pdo/


pecl install pecl_http
===========OUTPUT
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
................................................................................................................done: 1,026,048 bytes
71 source files, building
WARNING: php_bin /opt/php-5.4.11/bin/php appears to have a suffix -5.4.11/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] : ^C

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-18 19:10 UTC] ab@php.net
You have to run the pecl commando from the prefix path, not from the global path. Looks like you have some other php instance around.
 [2013-01-18 19:10 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-01-19 07:34 UTC] spero dot shiropetto at gmail dot com
It is a fresh configuration each time, no PHP installed by yum or RPM. One 
configuration is tested and removed prior to installing the next.

The results are the same from within /opt/php-5.4.11

twhitehead at prevc1webl01 in /opt/php-5.4.11 on
$bin/pecl install pecl_http
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
................................................................................
.................................................
6,048 bytes
71 source files, building
WARNING: php_bin /opt/php-5.4.11/bin/php appears to have a suffix 
-5.4.11/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] : ^C


It is unclear to me what I am missing if a fresh configuration of php to 
/opt/billybob doesn't have any issues?

$/opt/billybob/bin/pecl install pecl_http
downloading pecl_http-1.7.4.tar ...
Starting to download pecl_http-1.7.4.tar (Unknown size)
................................................................................
.........................................................................done: 
1,026,048 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
whether to enable cURL HTTP requests; specify libcurl directory [yes] : ^C
 [2013-02-18 00:36 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2013-02-18 09:32 UTC] spero dot shiropetto at gmail dot com
How can you say "No feedback was provided." when the last comment was from myself 
asking for clarification a day after?

I am also unable to re-open the bug as I get the error message "You aren't allowed 
to change a bug to that state."
 [2013-05-30 14:04 UTC] jmy at morgontech dot com
I'm also experiencing this problem, using 5.3.25.
It's definitely a valid bug.
 [2013-06-04 18:51 UTC] ben dot claar at gmail dot com
Same behavior on fresh WAMP, fresh PEAR installs on Windows. Please re-open.

C:\Users\claar>pecl install apc
downloading APC-3.1.13.tgz ...
Starting to download APC-3.1.13.tgz (171,591 bytes)
.....................................done: 171,591 bytes
55 source files, building
WARNING: php_bin C:\wamp\bin\php\php5.4.3\php.exe appears to have a suffix \php5
.4.3\php.exe, but config variable php_suffix does not match
ERROR: The DSP APC.dsp does not exist.
 [2013-06-04 18:55 UTC] ben dot claar at gmail dot com
Maybe related to http://pear.php.net/bugs/bug.php?id=17016
 [2013-06-04 19:22 UTC] ab@php.net
Hardly any PECL extension could be build the way you try on windows. If you want 
to build PECL extension for windows, please consult this wiki page 
https://wiki.php.net/internals/windows/stepbystepbuild for preparing the 
environment. Some prebuilt extensions can be found under 
http://windows.php.net/downloads/pecl/ .
 [2013-06-04 20:45 UTC] ben dot claar at gmail dot com
OK, I misunderstood "pecl install". I didn't realize "pecl install <package>" 
tried to build the package from source. The expected behavior was to download and 
install the correct dll for my system; oops.

But that isn't related to this bug. This bug is that the pecl command gets 
confused if "php" is in the php_bin path more than once. That should be fixed, and 
this bug should be re-opened.
 [2013-07-13 05:09 UTC] lblechl at madisoncollege dot edu
I agree, the expected behavior is still not occurring.

I'm experiencing the same issue with a standard WAMP install with PHP version 5.4.12. WAMP creates a C:\wamp\bin\php\php<VERSION_NUMBER> path containing the PHP executable by default. This seems to be consistent with what was suggested as the cause for confusion within pecl.
 [2013-12-10 09:09 UTC] kingmansoor at gmail dot com
Well, I had a similar problem with my php5.3.5 version,installing memcached, where I got a warning that said, "c:\wamp\bin\php\php5.3.5\php.exe appears to have a suffix \php5.3.5\php.exe, but config varibale suffix does not match.

I changed the php_suffix's default value to '\php5.3.5\php.exe', the warning was gone but the error remained i.e. The DSP memcached.dsp does not exist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 04:01:29 2024 UTC