Bug #71627 [NEW]: save function doesn't work baddly
| From: | dubois-holvoet dot patrick at neuf dot fr | Date: | Thu, 18 Feb 2016 19:11:15 +0000 |
| Subject: | Bug #71627 [NEW]: save function doesn't work baddly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-199327@lists.php.net to get a copy of this message | ||
From: dubois-holvoet dot patrick at neuf dot fr
Operating system: Windows 10
PHP version: 5.5.32
Package: DOM XML related
Bug Type: Bug
Bug description:save function doesn't work baddly
Description:
------------
---
From manual page: http://www.php.net/domdocument.save
---
Here is the problem.
Before using DOMDocument to build a XML structure and save it in a file,
I needed to serialize an object witch has to be included in the XML
structure.
But this object is from a class containing Protected members.
And as it's written in the PHP documentation the name of the protected
members is prefixed by the serialize function with an asterisc and a nul
character on each side of the asterisc.
And these nul characters cause the bug with the DOMDocument::save
function. The saved file is troncated juste before the first nul
character met.
Is there a solution to solve that ?
--
Edit bug report at https://bugs.php.net/bug.php?id=71627&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71627&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71627&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71627&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71627&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71627&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71627&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71627&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71627&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71627&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71627&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71627&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71627&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71627&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71627&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71627&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71627&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71627&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71627&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71627&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71627&r=mysqlcfg