[php-maint] Bug#614904: php5-cgi: fastcgi breaks __COMPILER_HALT_OFFSET__

Pascal COURTOIS debian-br at nouvo.com
Thu Feb 24 07:47:07 UTC 2011


Package: php5-cgi
Version: 5.3.3-7
Severity: important
Tags: upstream


php code :
=======================================================
<?php
  print "offset:".__COMPILER_HALT_OFFSET__."==\n";

  __halt_compiler();

=======================================================

with fastcgi (using either libapache2-mod-fcgid or libapache2-mod-fastcgi) and suexec,
the first call works. If called again I get this error:
Notice: Use of undefined constant __COMPILER_HALT_OFFSET__ - assumed '__COMPILER_HALT_OFFSET__'
  in /var/www/dev4.sociatomdev.com/chroot/htdocs/test.php on line 2 offset:__COMPILER_HALT_OFFSET__== 


If I touch the php file, the script works again once.
If I kill fastcgi processes, the script also works again once.

script works fine with php as Apache module or cgi

It used to work with lenny


-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.34.6-xxxx-std-ipv6-32 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-cgi depends on:
ii  libbz2-1.0              1.0.5-6          high-quality block-sorting file co
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libcomerr2              1.41.12-2        common error description library
ii  libdb4.8                4.8.30-2         Berkeley v4.8 Database Libraries [
ii  libgssapi-krb5-2        1.8.3+dfsg-4     MIT Kerberos runtime libraries - k
ii  libk5crypto3            1.8.3+dfsg-4     MIT Kerberos runtime libraries - C
ii  libkrb5-3               1.8.3+dfsg-4     MIT Kerberos runtime libraries
ii  libmagic1               5.04-5           File type determination library us
ii  libonig2                5.9.1-1          Oniguruma regular expressions libr
ii  libpcre3                8.02-1.1         Perl 5 Compatible Regular Expressi
ii  libqdbm14               1.8.77-4         QDBM Database Libraries [runtime]
ii  libssl0.9.8             0.9.8o-4squeeze1 SSL shared libraries
ii  libxml2                 2.7.8.dfsg-2     GNOME XML library
ii  mime-support            3.48-1           MIME files 'mime.types' & 'mailcap
ii  php5-common             5.3.3-7          Common files for packages built fr
ii  tzdata                  2010o-1          time zone and daylight-saving time
ii  ucf                     3.0025+nmu1      Update Configuration File: preserv
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

php5-cgi recommends no packages.

Versions of packages php5-cgi suggests:
pn  php-pear                      <none>     (no description available)

-- no debconf information





More information about the pkg-php-maint mailing list