summaryrefslogtreecommitdiff
path: root/ext/xml/tests
Commit message (Collapse)AuthorAgeFilesLines
* phpt file to bug #73135Edgar R. Sandi2016-11-121-0/+24
|
* Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-201-1/+1
|\
| * Improvements to fix #72714, suggested by nikicChristoph M. Becker2016-08-201-1/+1
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-201-0/+35
|\ \ | |/
| * Fix #72714: _xml_startElementHandler() segmentation faultChristoph M. Becker2016-08-201-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issue is caused by an integer overflow when the `long` passed as XML_OPTION_SKIP_TAGSTART is assigned to `xml_parser::toffset` which is declared as `int`. We can simply work around this issue, by clipping resulting negative values to 0 (and raising a notice in this case), because the reasonable range for this value is certainly catered to by positive `int`s. However, there still remains the issue that `xml_parser::toffset` is later added to `char *`s, which can cause OOB reads, so we make sure that the upper bound never exceeds the strlen(). We eschew optimizing `SKIP_TAGSTART` wrt. to the potentially duplicate strlen() call, because that code path is unexpected anyway.
* | Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-08-171-0/+74
|\ \ | |/
| * #72085: SEGV on unknown address zif_xml_parseChristoph M. Becker2016-08-171-0/+74
| | | | | | | | | | We better make sure that the ZVALs we're accessing as arrays are indeed arrays.
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-04-271-0/+17
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fix memory leak Fix bug #72099: xml_parse_into_struct segmentation fault 5.5.36 now Fix bug #72094 - Out of bounds heap read access in exif header processing Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definition Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset Fix for bug #71912 (libgd: signedness vulnerability) Typo in NEWS
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2016-04-261-0/+17
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fix memory leak Fix bug #72099: xml_parse_into_struct segmentation fault 5.5.36 now Fix bug #72094 - Out of bounds heap read access in exif header processing Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definition Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset Fix for bug #71912 (libgd: signedness vulnerability) Typo in NEWS Conflicts: configure.in main/php_version.h
| | * Fix bug #72099: xml_parse_into_struct segmentation faultStanislav Malyshev2016-04-261-0/+17
| | |
* | | Merge branch 'PHP-5.6'Christoph M. Becker2015-09-091-0/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Skip test for old glibc iconv
| * | Skip test for old glibc iconvChristoph M. Becker2015-09-091-0/+2
| |/ | | | | | | | | | | | | bug32001.phpt has a high failure rate for the submitted reports. According to several samples it seems the iconv implementation of glibc 2.12 (released 2010-05) is the culprit. It seems appropriate to skip the test for such old versions.
* | Deprecate PHP 4 constructorsAndrea Faulds2015-03-311-1/+1
| |
* | Use "float" and "integer" in typehint and zpp errorsAndrea Faulds2014-12-2123-131/+131
| |
* | Skip buncha tests on 32-bitAndrea Faulds2014-11-293-2/+3
|/
* this test depends on the simplexml ext, not just on xmlFerenc Kovacs2014-08-241-21/+0
|
* Merge branch 'PHP-5.3' into PHP-5.4Johannes Schlüter2013-07-101-0/+15
|\
| * add test for bug #65236Johannes Schlüter2013-07-101-0/+15
| |
* | Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2012-10-103-0/+0
|\ \ | |/
| * Remove executable permission on phptXinchen Hui2012-10-103-0/+0
| |
| * - Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the numberGustavo André dos Santos Lopes2010-10-271-0/+24
| | | | | | | | | | | | | | | | of reported malformed sequences). (Gustavo) #Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode. #In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's #get_next_char is different and is not prepared to recover appropriately from #errors.
* | Fixed bug #62328 (implementing __toString and a cast to string fails)Xinchen Hui2012-08-121-0/+21
| | | | | | | | __toString should has a high priority
* | Changed silent conversion of array to string to produce a notice. (Patrick)Stanislav Malyshev2011-10-2128-28/+28
| |
* | - remove magic quotes support, functions are kept (see the NEWS entry for ↵Pierre Joye2011-07-225-10/+0
| | | | | | | | the details) for BC reasons but do not allow to set enable MQ, missing tests changes in 5.4
* | - Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the numberGustavo André dos Santos Lopes2010-10-271-0/+24
|/ | | | | | | | of reported malformed sequences). (Gustavo) #Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode. #In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's #get_next_char is different and is not prepared to recover appropriately from #errors.
* Fixed bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect).Pierrick Charron2010-01-051-0/+133
|
* - Fix testJani Taskinen2009-12-141-3/+1
|
* fix testAntony Dovgal2009-01-131-2/+2
|
* MFH: fix bug #46699: (xml_parse crash when parser is namespace aware)Rob Richards2008-12-121-0/+33
| | | | | | fix a couple warnings add test
* Remove duff comment produced by the test generator toolAnt Phillips2008-12-057-29/+0
|
* XML tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit).Ant Phillips2008-12-0357-0/+8001
|
* Support for closuresDmitry Stogov2008-07-171-0/+47
|
* fix test namesAntony Dovgal2008-05-141-1/+1
|
* Fixed bug #43957 (utf8_decode() bogus conversion of partial multibyte UTF8 char)Rasmus Lerdorf2008-01-291-0/+13
|
* fix testHannes Magnusson2006-09-021-3/+1
|
* fix bug #38454 (warning upon disabling handler via xml_set_element_handler)Rob Richards2006-08-151-0/+71
| | | | | | fix bug #38427 (unicode causes xml_parser to misbehave) add test
* MFH: fix testRob Richards2006-01-041-2/+0
|
* - MFH Fix test by splitting itMarcus Boerger2005-12-232-82/+188
|
* - MFH Do not test output escaping hereMarcus Boerger2005-12-233-24/+24
|
* add skipif conditionsAntony Dovgal2005-12-2110-3/+26
|
* MFH: Fixed bug #35447 (xml_parse_into_struct() chokes on the UTF-8 BOM)Rob Richards2005-12-191-0/+48
| | | | | add test
* MFH: Hiding bugs is not purpose of the regression tests.foobar2005-11-011-1/+3
|
* Improve iconv skip conditionsIlia Alshanetsky2005-10-301-1/+1
|
* This test failed because libxml versions differ..foobar2005-08-071-7/+7
|
* Added test for bug #27908foobar2005-07-311-0/+19
|
* - Fix test.foobar2005-07-311-3/+3
|
* - If you ask me both (expat and libxml) are not really accurate about byteMarcus Boerger2005-07-172-0/+92
| | | | | | | positions and columns...however the line number information is now correct for both so for the moment we live with the situation that they return different byte and column information.
* fix testAntony Dovgal2005-06-291-1/+2
|
* nuke crap, end scripts always with ?>foobar2005-06-031-2/+3
|
* Add skipif, test requires iconv.Magnus M��tt�2005-06-031-0/+3
|