Dmitry Stogov
2874fa8fb0
Fixed test
2017-09-12 23:47:22 +03:00
Anatol Belski
cab41ecb93
Fix test compat with libxml2 2.9.5
...
One warning disappeared, but the flow is still valid.
2017-09-11 16:12:04 +02:00
Xinchen Hui
3a7b0027f3
Fixed bug #74950 (nullpointer deref in simplexml_element_getDocNamespaces)
2017-07-21 18:16:11 +08:00
Christoph M. Becker
7a90fc96d8
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-09 16:30:26 +02:00
Christoph M. Becker
c42a7f2f3f
Remove ignored --FAIL-- section from test case
...
This is just confusing.
2016-09-09 16:27:50 +02:00
Nikita Popov
bfd4277008
Fix bug #72957
2016-08-30 13:05:53 +02:00
Nikita Popov
6adb7e0b7a
Followup for bug #72971
...
Property writes did not respect the namespace either. This is an
incomplete fix in that it only handles the case where an existing
child element is modified, not when a new one is created.
2016-08-30 12:53:50 +02:00
Nikita Popov
07cc6a6ba2
Fix bug #72971
2016-08-30 10:54:31 +02:00
Xinchen Hui
8129b83992
Fixed bug #72588 (Using global var doesn't work while accessing SimpleXML element)
2016-07-13 10:49:58 +08:00
Anatol Belski
7a4c2fa829
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix regression introduced in 5683b6fa39
2016-03-08 13:16:08 +01:00
Anatol Belski
8ca02bb233
fix regression introduced in 5683b6fa39
...
Test extended. Basically, both iterator type and next node have
to be checked.
2016-03-08 12:59:59 +01:00
Anatol Belski
a3dceb485a
fix test
2015-08-26 16:39:48 +02:00
Christoph M. Becker
8d31e463a0
fixed test
2015-08-01 23:52:35 +02:00
Aaron Piotrowski
77cf6d81b4
Fix some missed tests
2015-06-15 08:20:30 -05:00
Aaron Piotrowski
110e0a5a2c
Merge branch 'master' into throwable-interface
...
# Conflicts:
# Zend/zend_language_scanner.c
# Zend/zend_language_scanner.l
# ext/simplexml/tests/SimpleXMLElement_xpath.phpt
2015-06-14 18:53:11 -05:00
Christoph M. Becker
c1401ad7b6
split simplexml tests for 7
2015-05-31 21:35:21 +02:00
Christoph M. Becker
b24fedbd24
split the original test to check behaviour diff on 32- and 64-bit
2015-05-31 21:28:44 +02:00
Christoph M. Becker
e44b040faf
recovered original meaning of SXE xpath test
2015-05-31 21:27:02 +02:00
Anatol Belski
5683b6fa39
Refactored the fix for bug #66084 , by cmb@php.net
2015-05-29 21:16:56 +02:00
Christoph M. Becker
36eb66692c
removed test for unrelated bug #68946
2015-05-29 20:43:40 +02:00
Christoph M. Becker
8e5b906459
added tests for bug #61335 , bug #67572 and bug #68946 (the latter already passing, but better safe than sorry)
2015-05-29 20:43:36 +02:00
Christoph M. Becker
1a3a674ee6
added failing tests for bug #62639 , bug #67116 , bug #69169 and bug #69491
2015-05-29 20:43:33 +02:00
Aaron Piotrowski
e97d5fab35
Update exception names in tests after formatting changes.
2015-05-17 17:31:43 -05:00
Aaron Piotrowski
fb7206e452
Merge branch 'master' into throwable-interface
2015-05-17 16:15:35 -05:00
Nikita Popov
3ae995f03c
Tweak uncaught exception message display
...
This implements a reduced variant of #1226 with just the following
change:
-Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d
+Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d
The '' wrapper around messages is very weird if the exception
message itself contains ''. Futhermore having the message wrapped
in '' doesn't work for the "and defined" suffix of
TypeExceptions.
2015-05-17 18:47:06 +02:00
Aaron Piotrowski
64b167d201
Updated tests to reflect exception class changes.
2015-05-16 16:49:14 -05:00
Nikita Popov
c9f27ee422
Display EngineExceptions like ordinary exceptions
...
TypeException stays as-is for now because it uses messages that are
incompatible with the way exception messages are displayed.
closure_038.phpt and a few others now show that we're generating
too many exceptions for compound operations on undefined properties
-- this needs to be fixed in a followup.
2015-05-15 23:40:32 +02:00
Dmitry Stogov
a30d328671
Errors converted to exceptions are not "recoverable" anymore.
2015-03-10 10:31:55 +03:00
Dmitry Stogov
1c94ff0595
Implement engine exceptions
...
RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7
Pending changes regarding naming of BaseException and whether it
should be an interface.
2015-03-09 14:01:32 +01:00
Andrea Faulds
e5eb9530ab
Use "float" and "integer" in typehint and zpp errors
2014-12-21 13:23:02 +00:00
Andrea Faulds
55e1c032e5
skip simplexml
2014-11-28 23:45:28 +00:00
Florian MARGAINE
df1b722b67
Fixes simplexml test
2014-11-10 21:44:48 +01:00
Ferenc Kovacs
cb41a7bad1
this test depends on the simplexml ext, not just on xml
2014-08-24 00:08:09 +02:00
Felipe Pena
345f6d90d5
- Fixed missing NULL check in SimpleXMLElement::xpath()
2014-05-10 11:53:40 -03:00
Felipe Pena
5bd443a452
- Fixed missing NULL check
2014-05-10 11:39:08 -03:00
Anatol Belski
a0beddf5e9
Fixed bug #66084 simplexml_load_string() mangles empty node name
2014-04-05 09:46:24 +02:00
Xinchen Hui
e081c55fb5
Merge branch 'PHP-5.3' into PHP-5.4
2012-10-10 10:31:31 +08:00
Xinchen Hui
610c7fbe7b
Remove executable permission on phpt
2012-10-10 10:27:49 +08:00
Stanislav Malyshev
a213c10ef2
Merge branch 'pull-request/112' into PHP-5.4
...
* pull-request/112:
Added in NEWS and UPGRADING for feature 55218
Adding in test for feature 55218
Implements feature 55218
2012-07-07 12:51:26 -07:00
Marc Easen
896ac689c9
Fixed the common misspelling of the word occurred (occured -> occurred)
2012-06-30 16:54:03 -07:00
Lonny Kapelushnik
2178b1d02d
Adding in test for feature 55218
2012-06-21 23:21:17 -04:00
Pierre Joye
1a166b2100
- add skipif for dom
2011-09-07 08:12:08 +00:00
Pierre Joye
8dc7e3d8c6
- add skipif for dom
2011-09-07 08:12:08 +00:00
Pierre Joye
9d33b167af
- add skipif
2011-09-06 07:09:56 +00:00
Pierre Joye
6402150c91
- add skipif
2011-09-06 07:09:56 +00:00
Christian Stocker
e1813b69c5
Merge from Trunk
...
simplexml->query returns empty array if no nodes were found
and false if libxml thinks the xpath-expression was invalid.
Behaves now the same like DomXPath and fixes Bug #48601
Adjusted a test to reflect that change
2011-09-01 13:42:45 +00:00
Christian Stocker
13fa5542f7
simplexml->query returns empty array if no nodes were found
...
and false if libxml thinks the xpath-expression was invalid.
Behaves now the same like DomXPath and fixes Bug #48601
Adjusted a test to reflect that change
2011-08-31 11:44:22 +00:00
Andrew Curioso
1e3b32c777
Commiting r311138 into the 5.3 branch - fix to SimpleXML get properties hash
2011-05-18 04:43:21 +00:00
Rob Richards
1e96fbe4a8
fix bug #48601 (xpath() returns FALSE for legitimate query)
...
add test
2010-05-05 11:40:11 +00:00
Rob Richards
8a0450698d
fix bug #48601 (xpath() returns FALSE for legitimate query)
...
add test
2010-05-05 11:40:11 +00:00