summaryrefslogtreecommitdiff
path: root/ext/standard/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-06-111-0/+25
|\ | | | | | | | | * PHP-7.3: Fix #77937: preg_match failed
| * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-06-111-0/+25
| |\ | | | | | | | | | | | | * PHP-7.2: Fix #77937: preg_match failed
| | * Fix #77937: preg_match failedChristoph M. Becker2019-06-111-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some recent Windows systems, ext\pcre\tests\locales.phpt fails, because 'pt_PT' is accepted by `setlocale()`, but not properly supported by the ctype functions, which are used internally by PCRE2 to build the localized character tables. Since there appears to be no way to properly check whether a given locale is fully supported, but we want to minimize BC impact, we filter out typical Unix locale names, except for a few cases which have already been properly supported on Windows. This way code like setlocale(LC_ALL, 'de_DE.UTF-8', 'de_DE', 'German_Germany.1252'); should work like on older Windows systems. It should be noted that the locale names causing trouble are not (yet) documented as valid names anyway, see <https://docs.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings?view=vs-2019>.
* | | Merge branch 'PHP-7.3' into PHP-7.4Dmitry Stogov2019-06-071-0/+99
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
| * | Merge branch 'PHP-7.2' into PHP-7.3Dmitry Stogov2019-06-071-0/+99
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)
| | * Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)Dmitry Stogov2019-06-071-0/+99
| | |
* | | this test is flaky on azure, and can't see why from current outputJoe Watkins2019-06-051-36/+29
| | | | | | | | | | | | so refactored, and restored an accidentally removed check (resource)
* | | Allow exceptions in __toString()Nikita Popov2019-06-057-24/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | ignore first gets time which is usually a few ms onlyRemi Collet2019-06-051-1/+1
| | | | | | | | | | | | | | | in previous version, max_ms was "1" and "10" in travis/appveyor having 10 by default make it fails on fast computer
* | | Remove stream_socket_sendto.phptNikita Popov2019-05-311-58/+0
| | | | | | | | | | | | | | | | | | | | | Fails for me locally due to different number of warnings with different messages. Rather than adding more wildcards I'm dropping this test entirely, as it doesn't seem to test anything particularly useful.
* | | Allow array_merge() / array_merge_recursive() without argumentsDik Takken2019-05-283-29/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows writing array_merge(...$arrays) instead of array_merge([], ...$arrays) and is in line with similar changes to array_push() and array_unshift() in PHP 7.3. Closes GH-4175.
* | | Make more tests run on WindowsGabriel Caruso2019-05-2710-52/+0
| | |
* | | Prevent further potential test conflictsChristoph M. Becker2019-05-231-0/+1
| | | | | | | | | | | | | | | These tests partially use the same resource names; as a quick-fix we're marking them all as conflicting.
* | | Prevent potential test conflictChristoph M. Becker2019-05-231-2/+2
| | | | | | | | | | | | | | | bug48746_tmp.lnk is also created by bug48746_2.phpt which might clash, if both are run simultaneouly.
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-05-212-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: use {TMP} placeholder in phpt tests
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-05-212-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: use {TMP} placeholder in phpt tests
| | * use {TMP} placeholder in phpt testsHolly Li (WIPRO LIMITED)2019-05-212-2/+2
| | |
* | | Make chr ZPP failure message consistent with ext/standardGabriel Caruso2019-05-184-25/+6
| | |
* | | Rename *.tif to *.tiff for consistencyPeter Kokot2019-05-167-5/+5
| | | | | | | | | | | | | | | | | | There really isn't any practical difference between these two, but repo currently uses *.tiff files more than 8.3 variant filenames of *.tif. Also these aren't part of the test.
* | | Rename *.dat to *.data for common file typePeter Kokot2019-05-142-1/+1
| | | | | | | | | | | | File extension in this case is not part of the test.
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-05-131-0/+16
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix #78003: strip_tags output change since PHP 7.3
| * | Fix #78003: strip_tags output change since PHP 7.3Christoph M. Becker2019-05-131-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | A refactoring of the strip tags state machine[1] missed the special treatment of `depth > 0` when a `>` is encountered in state 2 or 3. We re-add it for BC reasons. [1] <http://git.php.net/?p=php-src.git;a=commit;h=5cf64742773ddbf9af69d962a4d12b567fcf0084>
* | | Prevent race conditionChristoph M. Becker2019-05-111-2/+2
| | | | | | | | | | | | This test may conflict with readdir_variation3.phpt otherwise.
* | | Remove empty sectionPeter Kokot2019-05-071-2/+0
| | |
* | | Remove duplicate getimagesize_variation_003 testpeter279k2019-05-051-70/+0
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-251-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix #77940: test using outdated mon_thousands_sep for Swedish
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-04-251-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix #77940: test using outdated mon_thousands_sep for Swedish
| | * Fix #77940: test using outdated mon_thousands_sep for SwedishChristoph M. Becker2019-04-251-1/+1
| | | | | | | | | | | | Of course, we should expect a comma, not a period.
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-251-1/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix #77940: test using outdated mon_thousands_sep for Swedish
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-04-251-1/+5
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix #77940: test using outdated mon_thousands_sep for Swedish
| | * Fix #77940: test using outdated mon_thousands_sep for SwedishChristoph M. Becker2019-04-251-1/+5
| | | | | | | | | | | | This time so that it works for all Windows 10 versions (hopefully).
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-251-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix #77940: test using outdated mon_thousands_sep for Swedish
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-04-251-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix #77940: test using outdated mon_thousands_sep for Swedish
| | * Fix #77940: test using outdated mon_thousands_sep for SwedishChristoph M. Becker2019-04-251-1/+1
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-251-0/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix #77938: socket_get_option error
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-04-251-0/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix #77938: socket_get_option error
| | * Fix #77938: socket_get_option errorChristoph M. Becker2019-04-251-0/+3
| | | | | | | | | | | | | | | Since tcp_socket/ssl streams are not representable, we suppress the redirect to fix the test case.
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-231-0/+16
|\ \ \ | |/ /
| * | Fixed bug #77931Nikita Popov2019-04-231-0/+16
| | |
* | | Remove some uses of deprecated internal_encoding settings in testsNikita Popov2019-04-1716-16/+16
| | |
* | | Try to fix stat_variation3-win32.phptNikita Popov2019-04-151-1/+1
| | | | | | | | | | | | | | | | | | After fixing comparison operator typos in f73c104927b64d6137cbe42bf42260d9349cbd02 this test is failing. I believe the comparison here should be using < rather than ==.
* | | Fix incorrect compare_stats operatorNikita Popov2019-04-155-7/+7
| | |
* | | Add test for get_cfg_var with array variableNikita Popov2019-04-121-0/+27
| | | | | | | | | | | | | | | | | | And fix incorrect variable shadowing in add_config_entry(). However, the test doesn't hit this case, as it requires a nested array. I'm not sure if it's possible to produce nested arrays from ini?
* | | Avoid directory clash in realpath testsNikita Popov2019-04-122-31/+31
| | |
* | | Fix bug #77866: Port Serializable SPL classes to use __unserialize()Nikita Popov2019-04-101-3/+10
| | | | | | | | | | | | Payloads created using Serializable are still supported.
* | | Fixed bug #77873Nikita Popov2019-04-091-1/+1
| | |
* | | Fix leak on error in new serialization mechanismNikita Popov2019-04-091-0/+17
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-081-0/+35
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-04-081-0/+35
| |\ \ | | |/
| | * Preserve keys in emulate_read_fd_set()twosee2019-04-081-0/+35
| | | | | | | | | | | | Keys are already preserved in the non-emulated case.