diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-01 13:20:42 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-02 10:34:08 +0200 |
commit | 2f92957fd3d8d87e73013c016e479451db0c6a1e (patch) | |
tree | ca7d2d34038d7e1fb0e511962ad0db5e57390c63 /ext/xml/tests | |
parent | 2041c9abf5fdaa9d0e632e5e6e4f3488159c9bfe (diff) | |
download | php-git-2f92957fd3d8d87e73013c016e479451db0c6a1e.tar.gz |
Convert some notices to warnings
Part of https://wiki.php.net/rfc/engine_warnings.
Diffstat (limited to 'ext/xml/tests')
-rw-r--r-- | ext/xml/tests/xml_parser_set_option_variation3.phpt | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/ext/xml/tests/xml_parser_set_option_variation3.phpt b/ext/xml/tests/xml_parser_set_option_variation3.phpt index 836ee7a469..4187ddf068 100644 --- a/ext/xml/tests/xml_parser_set_option_variation3.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation3.phpt @@ -15,7 +15,6 @@ if (!extension_loaded("xml")) { */ echo "*** Testing xml_parser_set_option() : usage variations ***\n"; -error_reporting(E_ALL & ~E_NOTICE); class aClass { function __toString() { @@ -79,12 +78,6 @@ $values = array( // resource data $fp, - - // undefined data - $undefined_var, - - // unset data - $unset_var, ); // loop through each element of the array for value @@ -174,14 +167,10 @@ Arg value string bool(true) Arg value Some Ascii Data -bool(true) -Arg value Resource id %s +Notice: Object of class aClass could not be converted to int in %s on line %d bool(true) -Arg value -bool(true) - -Arg value +Arg value Resource id %s bool(true) Done |