lucid: php5 API is outdated

Bug #534550 reported by Leonardo Silva Amaral
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Invalid
Medium
Unassigned
Declined for Lucid by Chuck Short

Bug Description

Binary package hint: php5

Ive compiled a custom version of php5-memcache package and i found a problem in php-config. It reports a old API version, but the folder have new API, so the new package conflicts with installed php:

└─(14:53)─> php-config
Usage: /usr/bin/php-config [OPTION]
Options:
  --prefix [/usr]
  --includes [-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib ]
  --ldflags []
  --libs [-lcrypt -lz -lcrypt -lssl -ldb -lbz2 -lz -lpcre -lssl -lresolv -lm -ldl -lnsl -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lxml2 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lcrypt ]
  --extension-dir [/usr/lib/php5/20060613]
  --include-dir [/usr/include/php5]
  --php-binary [/usr/bin/php]
  --php-sapis [cli apache2handler]
  --phpapi [20060613]
  --configure-options [--prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/apache2/conf.d --build=x86_64-linux-gnu --host=x86_64-linux-gnu --sysconfdir=/etc --mandir=/usr/share/man --disable-debug --with-regex=php --disable-rpath --disable-static --with-pic --with-layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr --with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip --with-mime-magic=/usr/share/file/magic.mime --with-exec-dir=/usr/lib/php5/libexec --with-system-tzdata --without-mm --with-curl=shared,/usr --with-zlib-dir=/usr --with-gd=shared,/usr --enable-gd-native-ttf --with-gmp=shared,/usr --with-jpeg-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr --with-freetype-dir=shared,/usr --with-ttf=shared,/usr --with-t1lib=shared,/usr --with-ldap=shared,/usr --with-ldap-sasl=/usr --with-mhash=shared,/usr --with-mysql=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config --with-pspell=shared,/usr --with-unixODBC=shared,/usr --with-recode=shared,/usr --with-xsl=shared,/usr --with-snmp=shared,/usr --with-sqlite=shared,/usr --with-mssql=shared,/usr --with-tidy=shared,/usr --with-xmlrpc=shared --with-pgsql=shared,/usr]
  --version [5.2.10-2ubuntu6.4]
  --vernum [50210]

└─(15:02)─> aptitude show php5-cli
Pacote: php5-cli
Estado: não instalado
Automaticamente instalado: não
Versão: 5.2.10.dfsg.1-2ubuntu6
Prioridade: opcional
Seção: web
Mantenedor: Ubuntu Core Developers <email address hidden>
Tamanho Descompactado: 5779k
Depende de: libbz2-1.0, libc6 (>= 2.7), libcomerr2 (>= 1.01), libdb4.7, libedit2 (>= 2.5.cvs.20010821-1), libgssapi-krb5-2 (>= 1.6.dfsg.2), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3
            (>= 1.6.dfsg.2), libncurses5 (>= 5.6+20071006-3), libpcre3 (>= 7.7), libssl0.9.8 (>= 0.9.8f-5), libxml2 (>= 2.7.4), zlib1g (>= 1:1.1.4), mime-support, php5-common (=
            5.2.10.dfsg.1-2ubuntu6), libmagic1, ucf, tzdata
Sugere: php-pear
Fornece: phpapi-20060613
Descrição: command-line interpreter for the php5 scripting language
 This package provides the /usr/bin/php5 command interpreter, useful for testing PHP scripts from a shell or performing general shell scripting tasks.

 The following extensions are built in: bcmath bz2 calendar ctype date dba dom exif filter ftp gettext hash iconv json libxml mbstring mime_magic ncurses openssl pcntl pcre posix
 readline Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib.

 PHP5 é uma linguagem de script que pode ser incorporada no HTML. Muita da sua sintaxe é emprestada do C, Java e Perl com alguns recursos específicos de PHP lançados nele. O objetivo
 da linguagem é permitir que desenvolvedores escrevam rapidamente páginas dinamicamente geradas. Esta versão do PHP5 foi construída com o patch Suhosin.
Homepage: http://www.php.net/

┌─(administrador@manny Seg, 08 Mar 10)─(/home/administrador/php-memcache/php-memcache-3.0.1)─
└─(15:02)─> dpkg -L php5-cli
/.
/etc
/etc/php5
/etc/php5/cli
/usr
/usr/bin
/usr/bin/php5
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/php5.1.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/php5-cli
/usr/share/doc
/usr/lib
/usr/lib/php5
/usr/lib/php5/20090626
/etc/php5/cli/conf.d
/usr/share/doc/php5-cli

P.s: Mixed karmic/lucid system, but apache, php and mysql is pure lucid packages.

Revision history for this message
Khairul Aizat Kamarudzzaman (fenris) wrote :

$ apt-cache policy php-apc
php-apc:
  Installed: (none)
  Candidate: 3.0.19-2
  Version table:
     3.0.19-2 0
        500 http://us.archive.ubuntu.com lucid/universe Packages
        100 /var/lib/dpkg/status
$ install php-apc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php-apc: Depends: phpapi-20060613+lfs but it is not installable
E: Broken packages

Revision history for this message
Chuck Short (zulcss) wrote :

This is something we are not going to fix in karmic. If you install PHP 5.3 and expect modules from karmic to work then you will have to recompile your own modules. Basically you are on your own.

Regards
chuck

Changed in php5 (Ubuntu):
status: New → Won't Fix
Revision history for this message
Leonardo Silva Amaral (leleobhz) wrote : Re: [Bug 534550] Re: php5 API is outdated

I do not talked about Karmic, but with Lucid. Im conscient i need
recompile modules that exists only for karmic, and im doing this (one
module ive backported from debian).

The issue claimed here is LUCID php have wrong API version compiled, and
new compiled modules links to 2006 version when the present version is 2009

Em 08-03-2010 17:00, Chuck Short escreveu:
> This is something we are not going to fix in karmic. If you install PHP
> 5.3 and expect modules from karmic to work then you will have to
> recompile your own modules. Basically you are on your own.
>
> Regards
> chuck
>
>
> ** Changed in: php5 (Ubuntu)
> Status: New => Won't Fix
>
>

Changed in php5 (Ubuntu):
status: Won't Fix → Confirmed
Revision history for this message
Leonardo Silva Amaral (leleobhz) wrote : Re: php5 API is outdated

I do not talked about Karmic, but with Lucid. Im conscient i need
recompile modules that exists only for karmic, and im doing this (one
module ive backported from debian).

The issue claimed here is LUCID php have wrong API version compiled, and
new compiled modules links to 2006 version when the present version is 2009

Daniel Hahler (blueyed)
Changed in php5 (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
summary: - php5 API is outdated
+ lucid: php5 API is outdated
Revision history for this message
Chuck Short (zulcss) wrote :

You are obviously you are using different sets of packages. You are using the php-config from 5.2.10 so it will report the API is wrong. Please list the output of dpkg -l | grep php. If you are running a mix of Karmic and Lucid then yes you are going to have this problem.

Thanks
chuck

Revision history for this message
Leonardo Silva Amaral (leleobhz) wrote :

Have here a conflict with libapache2-mod-php that forces a downgrade when i do dist-upgrade now. Ill reinstall everything and rebuild packages to test this bug. I'll set it as incomplete for now.

Changed in php5 (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Ondřej Surý (ondrej) wrote :

php-config (from php5-dev 5.3.1-5ubuntu1) in lucid reports phpapi just fine. It's some local mess created by combining karmic and lucid.

Ondrej

Changed in php5 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.