1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00

Merge branch 'PHP-7.1'

This commit is contained in:
Nikita Popov
2017-01-10 23:25:23 +01:00
3 changed files with 26 additions and 4 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ Since: DOM Level 3
*/
int dom_attr_schema_type_info_read(dom_object *obj, zval *retval)
{
php_error_docref(NULL, E_WARNING, "Not yet implemented");
/* TODO */
ZVAL_NULL(retval);
return SUCCESS;
}
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #61858 DOMAttr debug info generates E_WARNING
--SKIPIF--
<?php
require_once('skipif.inc');
?>
--FILE--
<?php
$doc = new DOMDocument();
$doc->loadXML('<example a="b">Test</example>');
$example = $doc->getElementsByTagName('example')->item(0);
$attr = $example->getAttributeNode('a');
var_dump($attr);
print_r($attr);
--EXPECTF--
object(DOMAttr)#%d (%d) {
%A
}
DOMAttr Object
(
%A
)
+1 -3
View File
@@ -61,9 +61,7 @@ object(DOMException)#%d (7) {
["args"]=>
array(1) {
[0]=>
Warning: var_dump(): %s
DOMAttr
DOMAttr
}
}
}