ZF-10677: Zend_Pdf_StringParser uses PHP 5.2.5 escape sequences (eg. \f)
Although " http://framework.zend.com/manual/en/… " states :
"Zend recommends the most current release of PHP [...], and currently supports PHP 5.2.4 or later."
it is not possible to use Zend_Pdf (Zend_Pdf_StringParser) with PHP 5.2.4.
The problem comes from special escape sequences introduced only in PHP 5.2.5 :
- eg. \f form feed (FF or 0x0C (12) in ASCII) (since PHP 5.2.5)
The "\f" escape sequence appears at several places in "Zend/Pdf/StringParser.php" and maybe elsewhere in the Zend_Pdf package.
My current specific problem is "startxref" that is truncated to "startxre" because "\f" is handled as "f".
I recommend using "\x0C" instead and still support PHP 5.2.4.