|
|
@@ -264,8 +264,15 @@ class Zend_Pdf_StringParser
|
|
|
}
|
|
|
} else {
|
|
|
$start = $this->offset;
|
|
|
- $this->offset += strcspn($this->data, "()<>[]{}/%\x00\t\n\f\r ", $this->offset);
|
|
|
+ $compare = '';
|
|
|
+ if( version_compare( phpversion(), '5.2.5' ) >= 0) {
|
|
|
+ $compare = "()<>[]{}/%\x00\t\n\f\r ";
|
|
|
+ } else {
|
|
|
+ $compare = "()<>[]{}/%\x00\t\n\r ";
|
|
|
+ }
|
|
|
|
|
|
+ $this->offset += strcspn($this->data, $compare, $this->offset);
|
|
|
+
|
|
|
return substr($this->data, $start, $this->offset - $start);
|
|
|
}
|
|
|
}
|