Edit report at http://bugs.php.net/bug.php?id=52656&edit=1
ID: 52656 Updated by: [email protected] Reported by: daniel_schulz1 at web dot de Summary: DOMCdataSection::splitText broken -Status: Open +Status: Closed Type: Bug Package: DOM XML related Operating System: Linux PHP Version: 5.3.3 -Assigned To: +Assigned To: iliaa Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-11-29 15:48:55] [email protected] Automatic comment from SVN on behalf of iliaa Revision: http://svn.php.net/viewvc/?view=revision&revision=305837 Log: Fixed bug #52656 (DOMCdataSection does not work with splitText). ------------------------------------------------------------------------ [2010-08-20 15:24:09] daniel_schulz1 at web dot de Description: ------------ The class "DOMCdataSection" inherits the function "splitText" from DOMText. However, this function apparently always return bool(false), a return type not even mentioned in the DOMText::splitText documentation. Test script: --------------- $CData = new DOMCdataSection('splithere!'); $CDataSplit = $CData->splitText(5); var_dump($CData->data); //string(10) "splithere!" var_dump($CDataSplit->data); //NULL var_dump($CDataSplit); //bool(false) Expected result: ---------------- The function $CData->splitText() should have returned a "DOMCdataSection" object with its "data" property containing "here!". The object $CData should have its "data" property shortened to "split". Actual result: -------------- The function $CData->splitText() returns boolean "false", and does not modify its object's "data" property. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52656&edit=1
