You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some bug report ( PHP_VERSION: 5.3.18, LIBXML_VERSION: 20800, LIBXML_NOXMLDECL: 2)
PHP Warning: DOMDocument::loadXML(): Char 0x0 out of allowed range in Entity, line: 5892 in /private/tmp/CFPropertyList/classes/CFPropertyList/CFPropertyList.php on line 256
PHP Fatal error: Uncaught exception 'DOMException' in /private/tmp/CFPropertyList/classes/CFPropertyList/CFPropertyList.php:256
A possible solution:
preg_replace('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', '', $str);
The text was updated successfully, but these errors were encountered:
Ok, sorry but this is not an issue of CFPropertyList. A zero byte in XML is forbidden. You have to wrap it in base64. If you want to store binary data, you should wrap it in CFData instead of CFString.
Of course we cannot simply remove characters from the XML…
some bug report ( PHP_VERSION: 5.3.18, LIBXML_VERSION: 20800, LIBXML_NOXMLDECL: 2)
PHP Warning: DOMDocument::loadXML(): Char 0x0 out of allowed range in Entity, line: 5892 in /private/tmp/CFPropertyList/classes/CFPropertyList/CFPropertyList.php on line 256
PHP Fatal error: Uncaught exception 'DOMException' in /private/tmp/CFPropertyList/classes/CFPropertyList/CFPropertyList.php:256
A possible solution:
preg_replace('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', '', $str);
The text was updated successfully, but these errors were encountered: