[php-src] Issue #8603: Throw Exception instead of returning false when SimpleXML::asXml() fails

From: Date: Sun, 22 May 2022 14:47:35 +0000
Subject: [php-src] Issue #8603: Throw Exception instead of returning false when SimpleXML::asXml() fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241572@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8603 Author: pbories ### Description Is there any reason why SimpleXML::asXml() returns string on success or false on failure, even when no fileName parameter is specified ? When $filename is null, I think it would be more helpful to return a string on success or an exception on failure. Please let me know if/why you think I'm wrong. Thanks

« previous php.bugs (#241572) next »