]> granicus.if.org Git - php/commit
Change XMLWriter resources to objects
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 14 Sep 2019 16:31:59 +0000 (18:31 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 18 Sep 2019 06:52:14 +0000 (08:52 +0200)
commitd61bc63c4da9484fb320435ff62101c2291ed621
treebd97738b3b2251041ce80770085900384e6cc512
parent873b54840fde83043a970124412f36a8f129e209
Change XMLWriter resources to objects

While we generally prefer objects over resources for quite a while, the
procedural XMLWriter API still uses resources, although there is
already an object-oriented API which uses objects.  This dichotomy
makes no sense, slightly complicates the implementation, and doesn't
allow a stepwise migration to the object-oriented API, which might be
desired.  Thus we completely drop the XMLWriter resources in favor of
XMLWriter objects.

We consider the minor BC break acceptable for a major version, since
only explicit type checks (`is_resource()`, `gettype()` etc.) need to
be adapted.
NEWS
UPGRADING
ext/xmlwriter/php_xmlwriter.c
ext/xmlwriter/php_xmlwriter.h
ext/xmlwriter/xmlwriter.stub.php
ext/xmlwriter/xmlwriter_arginfo.h