Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75146 - mod_php ignores error_reporting setting if php_accelerator installed
Summary: mod_php ignores error_reporting setting if php_accelerator installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 01:12 UTC by Paul Oldham
Modified: 2004-12-21 01:45 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 Paul Oldham 2004-12-21 01:12:47 UTC
I have the default value of error_reporting 'E_ALL & ~E_NOTICE' set in 
/etc/php/apache2-php4/php.ini

When I upgraded to mod_php-4.3.10 is started reporting some (but not all) notices, which breaks various applications I'm running.

Removing php_accelerator by commenting out the 'zend_extension=' line in the config file /etc/php/apache2-php4/php.ini made this go away.

I see that http://www.php.net/downloads.php notes an incompatibility between PHP 4.3.10 and Zend. I suspect this also applies to php_accelerator

Reproducible: Always
Steps to Reproduce:
For some reason this is difficult to reproduce with a simple example. For example using an undefined constant in a tiny script doesn't produce a notice, however the same thing inside a big script (./lib/ErrorManager.php in phpwiki in my case where DEBUG was undefined) does.


Actual Results:  
You get a report from mod_php and the script fails.

Expected Results:  
Reports should be ignored.

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 
2.4.26-bytemark-uml-20040706-1 i686)
=================================================================
System uname: 2.4.26-bytemark-uml-20040706-1 i686 UML
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
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="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo-distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb 
fortran gdbm gif gpm gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif 
mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime 
readline ruby sdl slang spell ssl tcpd tiff x86 xml xml2 xmms xv zlib"
Comment 1 Paul Oldham 2004-12-21 01:45:31 UTC
Having looked into this some more I found a solution at:

  http://phpa.phorum.org/read.php?f=2&i=1385&t=1385

Delete all in /tmp/php_* and restart apache2 and it's fine. I have therefore marked this bug as fixed.