Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115877 - E_STRICT flag stops all error reporting in Apache2 + PHP5 + PPC
Summary: E_STRICT flag stops all error reporting in Apache2 + PHP5 + PPC
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 13:37 UTC by Jim Wyllie
Modified: 2006-01-21 01:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Wyllie 2005-12-17 13:37:07 UTC
NOTE:  This PHP ebuild is masked.  I couldn't find documentation on whether you want errors in masked ebuilds or not.  If not, please delete this bug, as this option is not present in mod_php and PHP4 (last unmasked PHP ebuild).

Running: ebuild net-www/apache-2.0.54-r31 with dev-lang/php 5.0.5-r4 (exact version tag at the bottom of this bug) with Gentoo Linux on a G3 PPC (sole OS).

Description:  In my /etc/php/apache2-php5/php.ini file (softlinked to /etc/apache2/conf.php.ini), this line causes the error:

error_reporting  =  E_ALL & E_NOTICE & E_STRICT

When viewing a page with parse / runtime / warnings / etc, no output is displayed (much like when display_errors = Off).  Outputting to a log file doesn't work either.  Apache's /var/log/apache2/error_log does report a successful page access.  Changing the line to:

error_reporting  =  E_ALL & E_NOTICE & ~E_STRICT

fixes the problem.  Any combination I've tested with E_STRICT in it causes the same behavior, where any combination without it does not.

$ php -v
PHP 5.0.5-pl3-gentoo with Hardening-Patch 0.4.3 (cli) (built: Dec 15 2005 21:55:54)

PHP use flags:  (-adabas) -apache +apache2 -bcmath +berkdb (-birdstep) +bzip2 -calendar -cdb -cgi -cjk +cli +crypt -ctype +curl -curlwrappers -db2 +dba -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob-exif (-fdftk) -filepro (-firebird) -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp +hardenedphp -hyperwave-api -iconv -imap -informix -inifile (-interbase) -iodbc +ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit +mhash -ming -mnogosearch -msql -mssql -mysql -mysqli +ncurses +nls -oci8 (-oci8-instant-client) +odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external -pear -pfpro -pic -posix +postgres -qdbm +readline -recode -sapdb -sasl -session -sharedext-sharedmem -simplexml -snmp +soap +sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy +tiff +tokenizer +truetype -wddx +xml2 -xmlrpc -xpm -xsl -yaz -zip +zlib

Apache2 USE flags:  -apache2 -debug -doc -ldap -mpm-leader -mpm-peruser +mpm-prefork -mpm-threadpool -mpm-worker -no-suexec (-selinux) +ssl -static-modules -threads
Comment 1 Jim Wyllie 2005-12-17 13:39:03 UTC
Sorry, forgot to put 'emerge info' information here: 

Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc/G3, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.12.2 ppc)
=================================================================
System uname: 2.6.12.2 ppc 740/750
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.90.0.3-r5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=750"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.llarian.net/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="ppc berkdb bitmap-fonts bzip2 crypt cups curl eds emboss expat fortran gd gdbm gif gpm gstreamer gtk2 hardenedphp ipv6 jpeg libwww mhash motif mp3 mpeg ncurses nls odbc ogg oggvorbis opengl pam pcre pdflib perl php png postgres python readline spell ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 2 Sebastian Bergmann (RETIRED) gentoo-dev 2006-01-21 01:50:58 UTC
You want errors which are

  E_ALL or E_STRICT

not errors which are

  E_ALL and E_NOTICE and E_STRICT

at the same time.