[php-maint] Bug#359064: php4-cli: crashes when a script includes itself

Ulf Harnhammar metaur at telia.com
Sun Mar 26 12:13:44 UTC 2006

Subject: php4-cli: crashes when a script includes itself
Package: php4-cli
Version: 4:4.4.2-1+b1
Severity: normal


php4-cli crashes when a script includes itself:

metaur at metaur:~/ulf$ cat phpcrash.php


metaur at metaur:~/ulf$ php4 -q phpcrash.php
Segmentation fault
metaur at metaur:~/ulf$

One solution would be to keep track of included files in a function, and
not include them again.

// Ulf Harnhammar

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages php4-cli depends on:
ii  libbz2-1.0    1.0.3-2                    high-quality block-sorting file co
ii  libc6         2.3.6-3                    GNU C Library: Shared libraries an
ii  libcomerr2    1.38+1.39-WIP-2005.12.31-1 common error description library
ii  libdb4.3      4.3.29-4.1                 Berkeley v4.3 Database Libraries [
ii  libexpat1     1.95.8-3                   XML parsing C library - runtime li
ii  libgdbm3      1.8.3-2                    GNU dbm database routines (runtime
ii  libkrb53      1.4.3-6                    MIT Kerberos runtime libraries
ii  libmagic1     4.15-2                     File type determination library us
ii  libncurses5   5.5-1                      Shared libraries for terminal hand
ii  libpcre3      6.4-1.1                    Perl 5 Compatible Regular Expressi
ii  libssl0.9.8   0.9.8a-7                   SSL shared libraries
ii  libzzip-0-12  0.12.83-5                  library providing read access on Z
ii  mime-support  3.36-1                     MIME files 'mime.types' & 'mailcap
ii  php4-common   4:4.4.2-1+b1               Common files for packages built fr
ii  zlib1g        1:1.2.3-11                 compression library - runtime

php4-cli recommends no packages.

-- no debconf information

More information about the pkg-php-maint mailing list