[wp-trac] Re: [WordPress Trac] #7388: zend.zel_compatibility_mode=on causes fatal error in taxonomy.php

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 18 19:25:23 GMT 2009


#7388: zend.zel_compatibility_mode=on causes fatal error in taxonomy.php
---------------------------+------------------------------------------------
 Reporter:  humberto.cruz  |        Owner:  anonymous
     Type:  defect (bug)   |       Status:  reopened 
 Priority:  normal         |    Milestone:           
Component:  Taxonomy       |      Version:  2.7      
 Severity:  blocker        |   Resolution:           
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by hakre):

 Can you provide a hint since which WordPress release you encountered the
 problem first? Was anyone able to reproduce it?

 For documentation purposes, I suggest you post it on your own blog and/or
 create a page in Codex. I put a lot of usefull stuff on my user page in
 codex. Especially for those things which can not be easily solved with
 patches.

 What kind of PHP Error is it? Notice? Warning? Fatal?

 I put this Code-Fragment into wp-config.php to be able to test bleeding
 AT-ALL:
 {{{
 /**
  * error_reporting_unstrict
  *
  * Disable Strict Errors if applicable because wordpress
  * is not php 5 strict compatible.
  */
 function error_reporting_unstrict()
 {
         // check if E_STRICT does already exists
         if ( defined($name = 'E_STRICT') === FALSE )
         {
                 return;
         }

         /*
          * Change Error-Reporting by only removing
          * the E_STRICT
          */

         // Read out current Error Reporting value
         $orig = error_reporting(0);
         error_reporting($orig);

         // If E_STRICT is set, unset it in the bitmask
         if ( $orig & E_STRICT )
         {
                 // Unsetting E_STRICT from bitmask
                 $changed = ($orig ^ E_STRICT);

                 // Set the changed Bitmask
                 error_reporting($changed);
         }
 }

 // Disable Strict Errors //
 error_reporting_unstrict();
 }}}

 it dynamically removes the E_STRICT errors. At list with those disabled
 with the recommended PHP 5.2.latest-stable it does a good job. I dunno
 wether or not I have that zend.setting reported here en- or disabled.

 I hope this infos can help.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7388#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list