summaryrefslogtreecommitdiff
path: root/ext/standard
Commit message (Collapse)AuthorAgeFilesLines
* Remove typo from test headerSara Golemon2017-05-101-1/+1
|
* Tests to ensure BC with undocumented behavior used in hacksAnatol Belski2017-05-011-0/+32
| | | | Should become obsolete, once behaviors change.
* Revert "Detect invalid port in xp_socket parse ip address"Anatol Belski2017-04-271-37/+0
| | | | This reverts commit bab0b99f376dac9170ac81382a5ed526938d595a.
* Fix bug #74409Sebastian Bergmann2017-04-111-0/+1
|
* Fixed condition checkXinchen Hui2017-04-108-10/+10
|
* Fixed bug #72071: Prevent Max-Age from being negativeCraig Duncan2017-04-093-2/+22
|
* explicitly ignore php.ini for proc open testsAnatol Belski2017-03-216-9/+9
| | | | | | | In some cases, when an environment is unclean, tests might get stuck fe when some incorrect ini file is loaded. As the test depends on the core only, it is safer to explicitly ignore the ini. Any ini can be passed in the cmd itself, if needed.
* Fix bug #74265Nikita Popov2017-03-171-4/+4
|
* Return FALSE if error_log fails to write all bytesAdam Saponara2017-03-161-1/+5
|
* Detect invalid port in xp_socket parse ip addressSara Golemon2017-03-071-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For historical reasons, fsockopen() accepts the port and hostname separately: fsockopen('127.0.0.1', 80) However, with the introdcution of stream transports in PHP 4.3, it became possible to include the port in the hostname specifier: fsockopen('127.0.0.1:80') Or more formally: fsockopen('tcp://127.0.0.1:80') Confusing results when these two forms are combined, however. fsockopen('127.0.0.1:80', 443) results in fsockopen() attempting to connect to '127.0.0.1:80:443' which any reasonable stack would consider invalid. Unfortunately, PHP parses the address looking for the first colon (with special handling for IPv6, don't worry) and calls atoi() from there. atoi() in turn, simply stops parsing at the first non-numeric character and returns the value so far. The end result is that the explicitly supplied port is treated as ignored garbage, rather than producing an error. This diff replaces atoi() with strtol() and inspects the stop character. If additional "garbage" of any kind is found, it fails and returns an error.
* Fixed bug #74148 (ReflectionFunction incorrectly reports the number of ↵Xinchen Hui2017-02-231-0/+1
| | | | arguments)
* Fixed bug #74105Benjamin Robin2017-02-171-41/+45
| | | | | If getrandom syscall is unavailable (ENOSYS), try to fallback on /dev/urandom.
* Fix memory errors in url rewriterNikita Popov2017-02-162-234/+179
| | | | Strings aren't terminated here...
* Add json dep to testNikita Popov2017-02-161-0/+4
|
* Fixed bug #74090 stream_get_contents maxlength>-1 returns empty stringAnatol Belski2017-02-151-0/+22
|
* Fixed bug #73118Adam Saponara2017-02-123-46/+62
|
* Fix detection of isnan and isinfChristian Schmidt2017-02-082-7/+36
| | | | | | The isnan() and isinf() are C99 macros not functions. Also fix is_infinite(-INF) in case isinf is not defined.
* Revert "Fix detection of isnan and isinf"Nikita Popov2017-02-062-34/+6
| | | | This reverts commit 9ea0949f43959ff0cf519e7a10ef9de7a538cde3.
* Fix detection of isnan and isinfChristian Schmidt2017-02-052-6/+34
| | | | | | The isnan() and isinf() are C99 macros not functions. Also fix is_infinite(-INF) in case isinf is not defined.
* fix test for 32bits (int -> float)Remi Collet2017-02-011-2/+2
|
* Fixed #73973 - debug_zval_dump() assertion error for resource consts with ↵andrewnester2017-01-261-0/+9
| | | | --enable-debug
* Fixed bug #73965 DTrace reported as enabled when disabledRemi Collet2017-01-201-1/+1
|
* DNS CAA record type implementation and tests for ↵Marcus Bointon2017-01-182-2/+59
| | | | https://bugs.php.net/bug.php?id=73850
* Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2017-01-163-0/+120
|\
| * Add additional serialize tests for fixed bugsNikita Popov2017-01-163-0/+120
| | | | | | | | | | These have been fixed as a side-effect of the delayed __wakeup patch.
* | Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2017-01-101-5/+5
|\ \ | |/
| * Fix glob-wrapper.phpt to not fail in WindowsMitch Hagstrand2017-01-101-5/+5
| |
* | pull-request/1807:marcosptf2017-01-101-0/+202
| | | | | | | | test for dns_get_record
* | Merge branch 'PHP-5.6' into PHP-7.0Sara Golemon2017-01-091-0/+35
|\ \ | |/ | | | | | | * PHP-5.6: Fix open_basedir check for glob:// opendir wrapper
| * Fix open_basedir check for glob:// opendir wrapperSara Golemon2017-01-091-0/+35
| | | | | | | | | | | | | | | | php_check_open_basedir() expects a local filesystem path, but we're handing it a `glob://...` URI instead. Move the check to after the path trim so that we're checking a meaningful pathspec.
| * add skip when json not loadedRemi Collet2017-01-061-0/+2
| |
* | Un-XFAIL serialization testNikita Popov2017-01-101-2/+0
| |
* | Fix check for linux getrandom syscallLeigh2017-01-092-6/+1
| |
* | Fixed bug #72979 money_format stores wrong length on AIXJoe Watkins2017-01-091-0/+8
| |
* | update ip2long_varation2 test to skip for AIX, see bug #72973Joe Watkins2017-01-091-0/+1
| |
* | Fixed #72974 imap is undefined service on AIXJoe Watkins2017-01-091-0/+9
| |
* | Fix OOB read introduced by previous commitNikita Popov2017-01-081-4/+3
| | | | | | | | Ooops...
* | http_fopen_wrapper.c - Handle HTTP headers with varying white spaceRowan Collins2017-01-074-15/+208
| | | | | | | | | | | | | | | | | | | | | | The stream handler assumed all HTTP headers contained exactly one space, but the standard says there may be zero or more. Should fix Bug #47021, and any other edge cases caused by a web server sending unusual spacing, e.g. the MIME type discovered from Content-Type: can no longer contain leading whitespace. We strip trailing whitespace from the headers added into $http_response_header as well.
* | Implement github PR #1736Anatol Belski2017-01-072-0/+7
| | | | | | | | This fixes leak issues on *BSD systems, as described in the PR.
* | add stream_socket_sendto test from PR #1804Joe Watkins2017-01-061-0/+58
| |
* | Merge branch 'pull-request/1588' into PHP-7.0Joe Watkins2017-01-062-7/+52
|\ \ | | | | | | | | | | | | * pull-request/1588: Fixed #69442 closing of fd incorrect when PTS enabled
| * | Implemented fix for incorrect filedescriptor closingJoshua Thijssen2015-10-212-7/+52
| | |
* | | Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2017-01-053-517/+590
|\ \ \ | | |/ | |/|
| * | Add tests for delayed __wakeup()Nikita Popov2017-01-057-0/+263
| | |
| * | Implement delayed __wakeupNikita Popov2017-01-052-535/+622
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-04126-126/+126
| | |
* | | Fix buildNikita Popov2017-01-031-2/+2
| | |
* | | Merge branch 'pull-request/1905'Joe Watkins2017-01-033-11/+519
| | | | | | | | | | | | | | | * pull-request/1905: pack()/unpack() for Big Endian float/double and Little Endian float/double
* | | Use correct string release functionStanislav Malyshev2017-01-022-2/+2
| | |
* | | Fix error reportingStanislav Malyshev2017-01-022-4/+4
| | |