summaryrefslogtreecommitdiff
path: root/ext/standard/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-08-062-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: update NEWS fix test update NEWS Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: ext/soap/php_http.c ext/spl/spl_observer.c
* Fix #70096: Repeated iptcembed() adds superfluous FF bytesChristoph M. Becker2015-07-181-0/+31
| | | | | | When there is already an APP13 marker segment in the file, iptcembed() doesn't skip the first byte (0xFF) of this segment, what leads to unnecessary and potentially invalid duplication of this byte. This patch fixes this issue.
* Adding tests for getprotobyname and getprotobynumber functionsEdgar R. Sandi2015-07-114-0/+52
|
* Fix test related to c22da81Julien Pauli2015-07-071-3/+1
|
* Added more tests to improve function coverageEdgar R. Sandi2015-07-031-2/+46
|
* Improved code coverage of explode functionEdgar R. Sandi2015-06-291-0/+18
|
* Added basic and error tests for hex2bin functionEdgar R. Sandi2015-06-292-0/+33
|
* adding several other testing scenarios of code without coverage in ↵Edgar R. Sandi2015-06-291-0/+12
| | | | stripcslashes function
* adding another testing scenario without coverage in setlocale functionEdgar R. Sandi2015-06-291-0/+8
|
* Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-06-292-0/+85
|\ | | | | | | | | | | * PHP-5.5: Move strlen() check to php_mail_detect_multiple_crlf() Fixed Bug #69874 : Can't set empty additional_headers for mail()
| * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-06-282-0/+85
| |\ | | | | | | | | | | | | | | | * PHP-5.4: Move strlen() check to php_mail_detect_multiple_crlf() Fixed Bug #69874 : Can't set empty additional_headers for mail()
| | * Merge branch 'pull-request/1350' into PHP-5.4Stanislav Malyshev2015-06-282-0/+85
| | |\ | | | | | | | | | | | | | | | | | | | | * pull-request/1350: Move strlen() check to php_mail_detect_multiple_crlf() Fixed Bug #69874 : Can't set empty additional_headers for mail()
| | | * Fixed Bug #69874 : Can't set empty additional_headers for mail()Yasuo Ohgaki2015-06-191-0/+42
| | | |
* | | | Merge branch 'PHP-5.5' into PHP-5.6Christoph M. Becker2015-06-241-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-5.5: Made bug44295-win.phpt locale independent
| * | | Made bug44295-win.phpt locale independentChristoph M. Becker2015-06-241-2/+2
| | | | | | | | | | | | | | | | Formerly it failed on non English installations.
* | | | Merge branch 'PHP-5.5' into PHP-5.6Christoph M. Becker2015-06-242-1/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: updated NEWS updated NEWS Fixed bug #69768 (escapeshell*() doesn't cater to !) bump API version to 6.8
| * | | Merge branch 'PHP-5.4' into PHP-5.5Christoph M. Becker2015-06-242-1/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | * PHP-5.4: updated NEWS Fixed bug #69768 (escapeshell*() doesn't cater to !) bump API version to 6.8
| | * | Fixed bug #69768 (escapeshell*() doesn't cater to !)Christoph M. Becker2015-06-242-1/+6
| | |/ | | | | | | | | | | | | | | | When delayed variable substitution is enabled (can be set in the Registry, for instance), !ENV! works similar to %ENV%, and so ! should be escaped like %.
* | | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-06-111-0/+47
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: added test for bug #69646
| * | added test for bug #69646Anatol Belski2015-06-111-0/+47
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-06-091-0/+329
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: Fixed bug #68776
| * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-06-091-0/+329
| |\ \ | | |/ | | | | | | | | | * PHP-5.4: Fixed bug #68776
| | * Fixed bug #68776Yasuo Ohgaki2015-06-091-0/+329
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-05-311-0/+18
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: backport the basic code to properly recognize win 8.1 and 10 backport the manifest changes for makefile backport the manifest changes in js add default manifest add test
| * | add testAnatol Belski2015-05-311-0/+18
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2015-05-281-48/+48
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: Relax a little this test, because random is not reliable
| * | Relax a little this test, because random is not reliableRemi Collet2015-05-281-48/+48
| | | | | | | | | | | | Usual values are 3500-3950, but >4000 can happen.
* | | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-05-212-0/+52
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: updated NEWS added missing GLOB_BRACE support check added SKIPIF section to test to make sure that GLOB_BRACE is supported fix #69628: complex GLOB_BRACE fails on Windows added PHPT to check for bug #69628
| * | added missing GLOB_BRACE support checkChristoph M. Becker2015-05-211-0/+3
| | |
| * | added SKIPIF section to test to make sure that GLOB_BRACE is supportedChristoph M. Becker2015-05-211-0/+6
| | |
| * | added PHPT to check for bug #69628Christoph M. Becker2015-05-211-0/+43
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-05-127-39/+52
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: ext/standard/pack.c
| * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-05-127-39/+52
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: fix format update NEWS Add test for bug #69522 Update tests Fix bug #69522 - do not allow int overflow Forgot test file Fix bug #69403 and other int overflows Fixed bug #69418 - more s->p fixes for filenames Fixed bug #69364 - use smart_str to assemble strings Fix bug #69453 - don't try to cut empty string Fix bug #69545 - avoid overflow when reading list Conflicts: ext/pcntl/pcntl.c ext/standard/basic_functions.c ext/standard/pack.c ext/standard/tests/dir/opendir_variation1-win32.phpt
| | * Add test for bug #69522Stanislav Malyshev2015-05-111-0/+11
| | |
| | * Update testsStanislav Malyshev2015-05-117-45/+47
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-04-143-1/+58
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: (27 commits) fix non-standard C update NEWS 5.4.41 next fix CVE num update NEWS Fix bug #69441 (Buffer Overflow when parsing tar/zip/phar in phar_set_inode) fix test fix type in fix for #69085 fix memory leak & add test Fix tests fix CVE num Fix bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability) Fix test Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) ... Conflicts: ext/standard/http_fopen_wrapper.c
| * | Merge branch 'PHP-5.4.40' into PHP-5.5.24Stanislav Malyshev2015-04-121-0/+41
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.4.40: fix memory leak & add test Fix tests
| | * fix memory leak & add testStanislav Malyshev2015-04-121-0/+41
| | |
| * | Merge branch 'PHP-5.4.40' into PHP-5.5.24Stanislav Malyshev2015-04-121-1/+1
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.4.40: Fix bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability) Fix test
| | * Fix testStanislav Malyshev2015-04-121-1/+1
| | |
| * | Merge branch 'PHP-5.4.40' into PHP-5.5.24Stanislav Malyshev2015-04-111-0/+16
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4.40: Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) Fixed bug #68901 (use after free) Fixed bug #68740 (NULL Pointer Dereference) Fix bug #66550 (SQLite prepared statement use-after-free) Better fix for #68601 for perf https://bitbucket.org/libgd/gd-libgd/commits/81e9a993f2893d651d225646378e3fd1b7465467 Fix bug #68601 buffer read overflow in gd_gif_in.c Revert "Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4" Fixed bug #69293 Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable.
| | * More fixes for bug #69152Stanislav Malyshev2015-04-111-0/+16
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-03-223-40/+40
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: Fixed #68021 - get_browser() browser_name_regex
| * | Fixed #68021 - get_browser() browser_name_regexTjerk Meesters2015-03-223-40/+40
| | | | | | | | | | | | Replaced expression delimiter with tilde (~) and escape where necessary.
| * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-03-171-0/+37
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.4: Fix bug #69248 - heap overflow vulnerability in regcomp.c add test for bug #68976
* | | Renamed test case to match with reported bugJuan Basso2015-03-221-0/+0
| | |
* | | Fixed serialization of non string values on __sleepJuan Basso2015-03-221-0/+51
| | | | | | | | | | | | | | | | | | | | | Returning just N; (null) on the __sleep makes the number of fields/values be incomplete and corrupting the generated value from serialize, making impossible to unserialize it. Conflicts: ext/standard/var.c
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-03-171-0/+37
|\ \ \ | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fix bug #69248 - heap overflow vulnerability in regcomp.c add test for bug #68976
| * \ \ Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-03-171-0/+37
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | * PHP-5.4: Fix bug #69248 - heap overflow vulnerability in regcomp.c add test for bug #68976
| | * add test for bug #68976Stanislav Malyshev2015-03-171-0/+37
| | |