[phpldapadmin] E_STRICT with PHP4 code, maybe bug in pla_error_handler?
Cristian Rigamonti <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <20090319094153.GA12272@pegasus> |
Hi, I've a problem with the PLA custom error handler. Here's the scenario: I've added a custom file, included by cmd.php through the usual ?cmd=myfile. My file includes the PEAR QuickForm class, and this triggers the E_STRICT error message: E_STRICT: Assigning the return value of new by reference is deprecated This is OK, since QuickForm uses PHP4-style objects and I'm running PHP 5.2.6. What I can't understand is this: in lib/common.php error_reporting is set to E_ALL, which should exclude E_STRICT errors! I've tried to fiddle with error_reporting values, but it seems that E_STRICT errors are always displayed, unless I set error_reporting(0). If I turn off the PLA custom error handler in lib/common.php (pla_error_handler), my php.ini setting (E_ALL & !E_NOTICE) is respected and the E_STRICT errors are not displayed. Am I missing something or maybe there's a bug in pla_error_handler? Cri ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ______________________________________ phpLDAPadmin development mailing list. To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel http://phpldapadmin.sourceforge.net/