note 123621 added to function.xml-parser-create

From: Date: Sun, 17 Feb 2019 16:23:42 +0000
Subject: note 123621 added to function.xml-parser-create
Groups: php.notes 
Request: Send a blank email to php-notes+get-210256@lists.php.net to get a copy of this message
Internals has proposed[1] changing this extension from resource-based to object-based. When this change is made, xml_parser_create will return an object, not a resource. Application developers are encouraged to replace any checks for explicit success, like: <?php $res = xml_parser_create(/*...*/); if (! is_resource($res)) { // ... } ?> With a check for explicit failure: <?php $res = xml_parser_create(/*...*/); if (false === $res) { // ... } [1]: https://marc.info/?l=php-internals&m=154998365013373&w=2 ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.194 (proxied: 2600:1004:b04b:3d3d:68fb:f17b:e4b6:b5e9) ---- Manual Page -- http://php.net/manual/en/function.xml-parser-create.php Edit -- https://master.php.net/note/edit/123621 Del: integrated -- https://master.php.net/note/delete/123621/integrated Del: useless -- https://master.php.net/note/delete/123621/useless Del: bad code -- https://master.php.net/note/delete/123621/bad+code Del: spam -- https://master.php.net/note/delete/123621/spam Del: non-english -- https://master.php.net/note/delete/123621/non-english Del: in docs -- https://master.php.net/note/delete/123621/in+docs Del: other reasons-- https://master.php.net/note/delete/123621 Reject -- https://master.php.net/note/reject/123621 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210256) next »