[CentOS] PHP 5 bug?

Wed Jan 4 18:09:46 UTC 2012
Lists <lists at benjamindsmith.com>

I'm using EL6 with all updates applied and getting bit by a PHP5 bug 
that was fixed a year and a half ago...

https://bugs.php.net/bug.php?id=52534

EL6 ships with php 5.3.3, which was released prior to the bug fix. What 
are the chances that this fixed bug can be reported/fixed upstream at 
the prominent North American Linux Vendor? Here's sample code that 
demonstrates the problem:

function CheckBug52534(){
   $check = array(1 => 'a', -1 => 'b');
   $str = var_export($check, true);
   $str = "\$a=$str;";
   eval($str);
   if (!isset($a[-1]))
     return true;
}


echo (Checkbug52534()) ? "has it" : 'not found';

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.