Migrate skip checks to --EXTENSIONS--, p4

For rationale, see #6787

Extensions migrated in part 4:
* simplexml
* skeleton
* soap
* spl
* sqlite3
* sysvmsg
* sysvsem
* tidy - also removed a check for an ancient dependency version
This commit is contained in:
Max Semenik 2021-04-03 17:52:34 +03:00 committed by Nikita Popov
parent 4034d83432
commit 7f2f0c007c
802 changed files with 1686 additions and 1740 deletions

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: var_dump() SimpleXML: var_dump()
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Simple document SimpleXML: Simple document
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Simple document SimpleXML: Simple document
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: clone SimpleXML: clone
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Entities SimpleXML: Entities
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: CDATA SimpleXML: CDATA
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Text data SimpleXML: Text data
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: foreach SimpleXML: foreach
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Attributes SimpleXML: Attributes
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: XPath SimpleXML: XPath
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: foreach SimpleXML: foreach
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$sxe = simplexml_load_string(<<<EOF $sxe = simplexml_load_string(<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: foreach SimpleXML: foreach
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$sxe = simplexml_load_string(<<<EOF $sxe = simplexml_load_string(<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Simple Inheritance SimpleXML: Simple Inheritance
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
SimpleXML: echo/print SimpleXML: echo/print
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
SimpleXML: Attribute creation SimpleXML: Attribute creation
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
SimpleXML: Split text content SimpleXML: Split text content
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: adding/removing attributes (direct) SimpleXML: adding/removing attributes (direct)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: adding/removing attributes (single) SimpleXML: adding/removing attributes (single)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: adding/removing attributes (second) SimpleXML: adding/removing attributes (second)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: accessing singular subnode as array SimpleXML: accessing singular subnode as array
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: modifying attributes of singular subnode SimpleXML: modifying attributes of singular subnode
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: concatenating attributes SimpleXML: concatenating attributes
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: iteration through subnodes SimpleXML: iteration through subnodes
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: iteration through subnodes and attributes SimpleXML: iteration through subnodes and attributes
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: foreach with children() SimpleXML: foreach with children()
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Attribute compared to string SimpleXML: Attribute compared to string
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Element check SimpleXML: Element check
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Attributes inside foreach SimpleXML: Attributes inside foreach
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Attributes with entities SimpleXML: Attributes with entities
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: XPath and attributes SimpleXML: XPath and attributes
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: getting namespaces SimpleXML: getting namespaces
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: getName() SimpleXML: getName()
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Adding an elements SimpleXML: Adding an elements
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Adding an elements without text SimpleXML: Adding an elements without text
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: foreach and count SimpleXML: foreach and count
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: isset and unset by offset SimpleXML: isset and unset by offset
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: addChild and addAttribute SimpleXML: addChild and addAttribute
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: comparing instances SimpleXML: comparing instances
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: casting instances SimpleXML: casting instances
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: cast to array SimpleXML: cast to array
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$string = '<?xml version="1.0"?> $string = '<?xml version="1.0"?>

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: __toString SimpleXML: __toString
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$string = '<?xml version="1.0"?> $string = '<?xml version="1.0"?>

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: overridden count() method SimpleXML: overridden count() method
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
class SXE extends SimpleXmlElement { class SXE extends SimpleXmlElement {

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: implement Countable SimpleXML: implement Countable
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXML: Property assignment return value SimpleXML: Property assignment return value
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXMLElement->addAttribute() SimpleXMLElement->addAttribute()
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) die("skip"); ?> simplexml
--FILE-- --FILE--
<?php <?php
$simple = simplexml_load_file(__DIR__."/book.xml"); $simple = simplexml_load_file(__DIR__."/book.xml");

View file

@ -3,8 +3,8 @@ SimpleXMLElement: Test to ensure that the required attribute name correctly is g
--CREDITS-- --CREDITS--
Havard Eide <nucleuz@gmail.com> Havard Eide <nucleuz@gmail.com>
#PHPTestFest2009 Norway 2009-06-09 \o/ #PHPTestFest2009 Norway 2009-06-09 \o/
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) { echo "skip extension not available"; } ?> simplexml
--FILE-- --FILE--
<?php <?php
$a = new SimpleXMLElement("<php>testfest</php>"); $a = new SimpleXMLElement("<php>testfest</php>");

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Testing getDocNamespaces() with invalid XML Testing getDocNamespaces() with invalid XML
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = @new SimpleXMLElement("X",1); $xml = @new SimpleXMLElement("X",1);

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Testing xpath() with invalid XML Testing xpath() with invalid XML
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> simplexml
--FILE-- --FILE--
<?php <?php
// gracefully recover from parsing of invalid XML; not available in PHP // gracefully recover from parsing of invalid XML; not available in PHP

View file

@ -1,8 +1,9 @@
--TEST-- --TEST--
Testing xpath() with invalid XML Testing xpath() with invalid XML
--EXTENSIONS--
simplexml
--SKIPIF-- --SKIPIF--
<?php <?php
if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
?> ?>
--FILE-- --FILE--

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #24392 (empty namespaces causing confusion) Bug #24392 (empty namespaces causing confusion)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$s = simplexml_load_file(__DIR__.'/bug24392.xml'); $s = simplexml_load_file(__DIR__.'/bug24392.xml');

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #26976 (Can not access array elements using array indices) Bug #26976 (Can not access array elements using array indices)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #27010 (segfault and node text not displayed when returned from children()) Bug #27010 (segfault and node text not displayed when returned from children())
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #35785 (SimpleXML memory read error) Bug #35785 (SimpleXML memory read error)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #36611 (assignment to SimpleXML object attribute changes argument type to string) Bug #36611 (assignment to SimpleXML object attribute changes argument type to string)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #37076 (SimpleXML ignores .=) Bug #37076 (SimpleXML ignores .=)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = simplexml_load_string("<root><foo /></root>"); $xml = simplexml_load_string("<root><foo /></root>");

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute) Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #39760 (autocreating element doesn't assign value to first node) Bug #39760 (autocreating element doesn't assign value to first node)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #38347 (Segmentation fault when using foreach with an unknown/empty SimpleXMLElement) Bug #38347 (Segmentation fault when using foreach with an unknown/empty SimpleXMLElement)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #38354 (Unwanted reformatting of XML when using AsXML) Bug #38354 (Unwanted reformatting of XML when using AsXML)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #38406 (crash when assigning objects to SimpleXML attributes) Bug #38406 (crash when assigning objects to SimpleXML attributes)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #38424 (Different attribute assignment if new or exists) Bug #38424 (Different attribute assignment if new or exists)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) Bug #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #39760 (cloning fails on nested SimpleXML-Object) Bug #39760 (cloning fails on nested SimpleXML-Object)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #40451 (addAttribute() may crash when used with non-existent child node) Bug #40451 (addAttribute() may crash when used with non-existent child node)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #41175 (addAttribute() fails to add an attribute with an empty value) Bug #41175 (addAttribute() fails to add an attribute with an empty value)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #41582 (SimpleXML crashes when accessing newly created element) Bug #41582 (SimpleXML crashes when accessing newly created element)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #41861 (getNamespaces() returns the namespaces of a node's siblings) Bug #41861 (getNamespaces() returns the namespaces of a node's siblings)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #41867 (getName is broken) Bug #41867 (getName is broken)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #41947 (addChild incorrectly registers empty strings as namespaces) Bug #41947 (addChild incorrectly registers empty strings as namespaces)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root xmlns:myns="http://myns" />'); $xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root xmlns:myns="http://myns" />');

View file

@ -1,10 +1,7 @@
--TEST-- --TEST--
Bug #42259 (SimpleXMLIterator loses ancestry) Bug #42259 (SimpleXMLIterator loses ancestry)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) print 'skip';
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE-- --FILE--
<?php <?php
$xml =<<<EOF $xml =<<<EOF

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #42369 (Implicit conversion to string leaks memory) Bug #42369 (Implicit conversion to string leaks memory)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded('simplexml')) echo 'skip simplexml extension is not loaded'; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = '<?xml version="1.0" encoding="utf-8"?>'; $xml = '<?xml version="1.0" encoding="utf-8"?>';

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #43221 (SimpleXML adding default namespace in addAttribute) Bug #43221 (SimpleXML adding default namespace in addAttribute)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root />'); $xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root />');

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #44478 (Inconsistent behaviour when assigning new nodes) Bug #44478 (Inconsistent behaviour when assigning new nodes)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml_element = new simpleXMLElement('<root></root>'); $xml_element = new simpleXMLElement('<root></root>');

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #45553 (Using XPath to return values for attributes with a namespace does not work) Bug #45553 (Using XPath to return values for attributes with a namespace does not work)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<XML $xml =<<<XML

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #46003 (isset on nonexisting nodes return unexpected results) Bug #46003 (isset on nonexisting nodes return unexpected results)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml =<<<XML $xml =<<<XML

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #46047 (SimpleXML converts empty nodes into object with nested array) Bug #46047 (SimpleXML converts empty nodes into object with nested array)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>', $xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>',

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #46048 (SimpleXML top-level @attributes not part of iterator) Bug #46048 (SimpleXML top-level @attributes not part of iterator)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = ' $xml = '

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #48601 (xpath() returns FALSE for legitimate query) Bug #48601 (xpath() returns FALSE for legitimate query)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,9 +1,8 @@
--TEST-- --TEST--
Bug #51615 (PHP crash with wrong HTML in SimpleXML) Bug #51615 (PHP crash with wrong HTML in SimpleXML)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; simplexml
if (!extension_loaded("dom")) print "skip"; dom
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #53033: Mathematical operations convert objects to integers Bug #53033: Mathematical operations convert objects to integers
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #54973: SimpleXML casts integers wrong Bug #54973: SimpleXML casts integers wrong
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?> simplexml
--FILE-- --FILE--
<?php <?php
$xml = simplexml_load_string("<xml><number>9223372036854775808</number></xml>"); $xml = simplexml_load_string("<xml><number>9223372036854775808</number></xml>");

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #61335 - Access to array node returns wrong truth value Bug #61335 - Access to array node returns wrong truth value
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php
$rec1 = simplexml_load_string("<foo><bar>aa</bar>\n</foo>"); $rec1 = simplexml_load_string("<foo><bar>aa</bar>\n</foo>");

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #62328 (implementing __toString and a cast to string fails) Bug #62328 (implementing __toString and a cast to string fails)
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php
class UberSimpleXML extends SimpleXMLElement { class UberSimpleXML extends SimpleXMLElement {

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #62639 (XML structure broken) Bug #62639 (XML structure broken)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #63575 (Root elements are not properly cloned) Bug #63575 (Root elements are not properly cloned)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) die('skip simplexml extension not available');
?>
--FILE-- --FILE--
<?php <?php
$xml = '<a><b></b></a>'; $xml = '<a><b></b></a>';

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #66084 simplexml_load_string() mangles empty node name, var_dump variant Bug #66084 simplexml_load_string() mangles empty node name, var_dump variant
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml not available"; ?> simplexml
--FILE-- --FILE--
<?php <?php
echo var_dump(simplexml_load_string('<a><b/><c><x/></c></a>')), "\n"; echo var_dump(simplexml_load_string('<a><b/><c><x/></c></a>')), "\n";

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #66084 simplexml_load_string() mangles empty node name, json variant Bug #66084 simplexml_load_string() mangles empty node name, json variant
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml not available"; ?> simplexml
--FILE-- --FILE--
<?php <?php
echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')->c), "\n"; echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')->c), "\n";

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #67116 (Inconsistent parsing of Nodes w/o linefeed) Bug #67116 (Inconsistent parsing of Nodes w/o linefeed)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #67572 - SimpleXMLElement not parsing \n correctly Bug #67572 - SimpleXMLElement not parsing \n correctly
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php
$foo = 'bar'; $foo = 'bar';

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #69169 (simplexml_load_string parse wrongly when xml given in one row) Bug #69169 (simplexml_load_string parse wrongly when xml given in one row)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php
$a = '<?xml version="1.0" encoding="UTF-8"?> $a = '<?xml version="1.0" encoding="UTF-8"?>

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #69491 (simplexml doesn't correctly parse empty nodes on same line as another node) Bug #69491 (simplexml doesn't correctly parse empty nodes on same line as another node)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php
var_dump(simplexml_load_string('<a> var_dump(simplexml_load_string('<a>

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #72588 (Using global var doesn't work while accessing SimpleXML element) Bug #72588 (Using global var doesn't work while accessing SimpleXML element)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #72957: Null coalescing operator doesn't behave as expected with SimpleXMLElement Bug #72957: Null coalescing operator doesn't behave as expected with SimpleXMLElement
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #72971: SimpleXML isset/unset do not respect namespace Bug #72971: SimpleXML isset/unset do not respect namespace
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
Bug #72971 (2): SimpleXML property write does not respect namespace Bug #72971 (2): SimpleXML property write does not respect namespace
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?> simplexml
--FILE-- --FILE--
<?php <?php

View file

@ -1,8 +1,9 @@
--TEST-- --TEST--
Bug #74950 (null pointer deref in zim_simplexml_element_getDocNamespaces) Bug #74950 (null pointer deref in zim_simplexml_element_getDocNamespaces)
--EXTENSIONS--
simplexml
--SKIPIF-- --SKIPIF--
<?php <?php
if (!extension_loaded("simplexml")) die("skip SimpleXML not available");
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
?> ?>
--FILE-- --FILE--

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
Bug #75245 Don't set content of elements with only whitespaces Bug #75245 Don't set content of elements with only whitespaces
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) die('skip simplexml not available');
?>
--FILE-- --FILE--
<?php <?php
var_dump(simplexml_load_string('<test1><test2> </test2><test3></test3></test1>')); var_dump(simplexml_load_string('<test1><test2> </test2><test3></test3></test1>'));

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
BUg #76712 (Assignment of empty string creates extraneous text node) BUg #76712 (Assignment of empty string creates extraneous text node)
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded('simplexml')) die('skip simplexml not available');
?>
--FILE-- --FILE--
<?php <?php
$sxe = new SimpleXMLElement('<foo></foo>'); $sxe = new SimpleXMLElement('<foo></foo>');

View file

@ -1,10 +1,7 @@
--TEST-- --TEST--
Bug #55218 getDocNamespaces from current element and not root Bug #55218 getDocNamespaces from current element and not root
--SKIPIF-- --EXTENSIONS--
<?php simplexml
if (!extension_loaded("simplexml")) print "skip SimpleXML not present";
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE-- --FILE--
<?php <?php

View file

@ -1,7 +1,7 @@
--TEST-- --TEST--
SimpleXml: foreach by reference SimpleXml: foreach by reference
--SKIPIF-- --EXTENSIONS--
<?php if (!extension_loaded("simplexml")) print "skip"; ?> simplexml
--FILE-- --FILE--
<?php <?php

Some files were not shown because too many files have changed in this diff Show more