|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-29 15:48 UTC] iliaa@php.net
[2010-11-29 15:49 UTC] iliaa@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: iliaa
[2010-11-29 15:49 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
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.