php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58642 Version in phpinfo is not reported correctly
Submitted: 2009-04-22 11:47 UTC Modified: 2009-04-23 10:48 UTC
From: challgren at hallgrennetwork dot com Assigned:
Status: Closed Package: oauth (PECL)
PHP Version: 5.2.9 OS:
Private report: No CVE-ID: None
 [2009-04-22 11:47 UTC] challgren at hallgrennetwork dot com
Description:
------------
Just to let you know the OAuth version is not reported correctly in a phpinfo() report.

Reproduce code:
---------------
<?
phpinfo();
?>

Expected result:
----------------
A correct OAuth version.

Actual result:
--------------
OAuth
OAuth support enabled 
PLAINTEXT support  not supported  
RSA-SHA1 support  not supported  
HMAC-SHA1 support  enabled  
source version  $Id: oauth.c,v 1.43 2009/04/20 07:33:26 jawed Exp $  
version  @PACKAGE_VERSION@  


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-22 11:54 UTC] challgren at hallgrennetwork dot com
It also seems like package 0.99.6 does not compile as the updated version. I've removed the file stopped apache, edited the php.ini to remove the file restarted apache. And recompiled and stopped apache and modified the php.ini. And it still reports 4-20-09 version.
 [2009-04-22 13:08 UTC] pierre dot php at gmail dot com
How did you compile it? from cvs, using pecl install oauth, or download a release, uncompress, phpize,...?
 [2009-04-22 17:56 UTC] challgren at hallgrennetwork dot com
I downloaded the package untared it and then ran phpize and ./configure
 [2009-04-23 03:01 UTC] pierre dot php at gmail dot com
that's why the version is not set. It is replaced during the installation phase (replacing @PACKAGE_VERSION@ with the real version).
 [2009-04-23 03:02 UTC] pierre dot php at gmail dot com
when you use "pecl install oauth"
 [2009-04-23 04:31 UTC] challgren at hallgrennetwork dot com
Ok so I removed the extension and ran pecl install oauth-0.99.6 and it still shows the same information in phpinfo(). Here is my pecl install oauth-0.99.6

root@crowsnest:/usr/local/lib# pecl install oauth-0.99.6       
downloading oauth-0.99.6.tgz ...
Starting to download oauth-0.99.6.tgz (22,138 bytes)
........done: 22,138 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
building in /opt/TMP/pear-build-root/oauth-0.99.6
running: /root/tmp/pear/oauth/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for oauth support... yes, shared
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /opt/TMP/pear-build-root/oauth-0.99.6/libtool --mode=compile gcc  -I. -I/root/tmp/pear/oauth -DPHP_ATOM_INC -I/opt/TMP/pear-build-root/oauth-0.99.6/include -I/opt/TMP/pear-build-root/oauth-0.99.6/main -I/root/tmp/pear/oauth -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -I/usr/local/include/php -DHAVE_CONFIG_H  -g -O2 -Wall -g   -c /root/tmp/pear/oauth/oauth.c -o oauth.lo
mkdir .libs
 gcc -I. -I/root/tmp/pear/oauth -DPHP_ATOM_INC -I/opt/TMP/pear-build-root/oauth-0.99.6/include -I/opt/TMP/pear-build-root/oauth-0.99.6/main -I/root/tmp/pear/oauth -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php -DHAVE_CONFIG_H -g -O2 -Wall -g -c /root/tmp/pear/oauth/oauth.c  -fPIC -DPIC -o .libs/oauth.o
/bin/sh /opt/TMP/pear-build-root/oauth-0.99.6/libtool --mode=link gcc -DPHP_ATOM_INC -I/opt/TMP/pear-build-root/oauth-0.99.6/include -I/opt/TMP/pear-build-root/oauth-0.99.6/main -I/root/tmp/pear/oauth -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -I/usr/local/include/php -DHAVE_CONFIG_H  -g -O2 -Wall -g   -o oauth.la -export-dynamic -avoid-version -prefer-pic -module -rpath /opt/TMP/pear-build-root/oauth-0.99.6/modules  oauth.lo -lcurl
gcc -shared  .libs/oauth.o  -lcurl  -Wl,-soname -Wl,oauth.so -o .libs/oauth.so
creating oauth.la
(cd .libs && rm -f oauth.la && ln -s ../oauth.la oauth.la)
/bin/sh /opt/TMP/pear-build-root/oauth-0.99.6/libtool --mode=install cp ./oauth.la /opt/TMP/pear-build-root/oauth-0.99.6/modules
cp ./.libs/oauth.so /opt/TMP/pear-build-root/oauth-0.99.6/modules/oauth.so
cp ./.libs/oauth.lai /opt/TMP/pear-build-root/oauth-0.99.6/modules/oauth.la
PATH="$PATH:/sbin" ldconfig -n /opt/TMP/pear-build-root/oauth-0.99.6/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/TMP/pear-build-root/oauth-0.99.6/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/opt/TMP/pear-build-root/install-oauth-0.99.6" install
Installing shared extensions:     /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local/lib/php/extensions/no-debug-non-zts-20060613/
running: find "/opt/TMP/pear-build-root/install-oauth-0.99.6" | xargs ls -dils
313985194   4 drwxr-xr-x 3 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6
313985244   4 drwxr-xr-x 3 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr
313985246   4 drwxr-xr-x 3 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local
313985248   4 drwxr-xr-x 3 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local/lib
313985250   4 drwxr-xr-x 3 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local/lib/php
313985252   4 drwxr-xr-x 3 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local/lib/php/extensions
313985254   4 drwxr-xr-x 2 root root   4096 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local/lib/php/extensions/no-debug-non-zts-20060613
313985242 104 -rwxr-xr-x 1 root root 100853 Apr 23 03:30 /opt/TMP/pear-build-root/install-oauth-0.99.6/usr/local/lib/php/extensions/no-debug-non-zts-20060613/oauth.so

Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/oauth.so'
install ok: channel://pecl.php.net/oauth-0.99.6
Extension oauth enabled in php.ini
 [2009-04-23 10:48 UTC] jawed@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/oauth


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 23 19:03:37 2021 UTC