summaryrefslogtreecommitdiff
path: root/ext/dom
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-05-26 14:10:57 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-07-10 21:05:28 +0200
commitd30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1 (patch)
tree33fdeac65ef66eb3db6066af396763fae391bef9 /ext/dom
parent2ad75ba78440eeffbde35a12c666d5f55aaf631a (diff)
downloadphp-git-d30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1.tar.gz
Review the usage of apostrophes in error messages
Closes GH-5590
Diffstat (limited to 'ext/dom')
-rw-r--r--ext/dom/document.c2
-rw-r--r--ext/dom/tests/bug47430.phpt4
-rw-r--r--ext/dom/tests/bug67949.phpt4
3 files changed, 5 insertions, 5 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c
index d16a085463..6ff1750137 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -2054,7 +2054,7 @@ PHP_METHOD(DOMDocument, registerNodeClass)
RETURN_TRUE;
}
- zend_argument_error(NULL, 2, "must be a class name derived from %s or null, '%s' given", ZSTR_VAL(basece->name), ZSTR_VAL(ce->name));
+ zend_argument_error(NULL, 2, "must be a class name derived from %s or null, %s given", ZSTR_VAL(basece->name), ZSTR_VAL(ce->name));
}
/* }}} */
diff --git a/ext/dom/tests/bug47430.phpt b/ext/dom/tests/bug47430.phpt
index 2d5733fe31..33aaa235e8 100644
--- a/ext/dom/tests/bug47430.phpt
+++ b/ext/dom/tests/bug47430.phpt
@@ -25,8 +25,8 @@ print_r($arr);
?>
--EXPECT--
-Attempt to assign property 'nodeValue' on null
-Attempt to assign property 'nodeValue' on null
+Attempt to assign property "nodeValue" on null
+Attempt to assign property "nodeValue" on null
Array
(
[0] => Value
diff --git a/ext/dom/tests/bug67949.phpt b/ext/dom/tests/bug67949.phpt
index f6a12b9812..529dee04be 100644
--- a/ext/dom/tests/bug67949.phpt
+++ b/ext/dom/tests/bug67949.phpt
@@ -62,7 +62,7 @@ bool(false)
testing property access
string(4) "data"
-Warning: Attempt to read property 'textContent' on null in %s on line %d
+Warning: Attempt to read property "textContent" on null in %s on line %d
NULL
testing offset not a long
array(1) {
@@ -70,7 +70,7 @@ array(1) {
string(4) "test"
}
-Warning: Attempt to read property 'textContent' on null in %s on line %d
+Warning: Attempt to read property "textContent" on null in %s on line %d
bool(false)
NULL
array(1) {