Pedro Magalhães
2689917b17
#73594 tests only check the extra params if dns_get_record is successful
2017-07-10 06:55:31 +01:00
Stanislav Malyshev
f76a6cd023
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix tests
2017-07-04 21:05:06 -07:00
Stanislav Malyshev
e46d589624
Fix tests
2017-07-04 20:12:57 -07:00
Stanislav Malyshev
0496f5407f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Update NEWS
Fix bug #74087
Fixed parsing of strange formats with mixed month/day and time strings
Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV
Fixed bug #74111
Fix #74435 : Buffer over-read into uninitialized memory
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #73807
2017-07-04 19:44:51 -07:00
Nikita Popov
3a25a56a92
Fixed bug #74111
2017-07-04 19:38:42 -07:00
Nikita Popov
f8c514ba6b
Fixed bug #74111
2017-07-04 19:06:16 -07:00
Remi Collet
4b38feabe7
Adapt for 32-bits which fails at different offset (49 vs 38)
2017-07-04 20:25:59 +02:00
Anatol Belski
a29264eb8c
fix datatype
2017-07-04 16:37:17 +02:00
Nikita Popov
d02f953faf
Fixed bug #74101 and bug #74614
2017-07-04 10:39:41 +02:00
ideal
4d6100569b
Fix error if compiled without -fpermissive flag.
2017-06-23 13:31:23 +02:00
jhdxr
db287b2303
fix bug #74780 parse_url() borken when query string contains colon
2017-06-22 11:52:06 +01:00
Stanislav Malyshev
14c422a32f
Fix bug #73648 - integer overflow in substr
2017-06-20 13:29:48 -07:00
Tyson Andre
81b2533a68
Fixes bug #74708 reflection signatures for random_bytes+random_int
...
They have 1 and 2 required parameters, respectively
See https://secure.php.net/manual/en/function.random-int.php
2017-06-13 08:11:25 +02:00
Sara Golemon
8dcfec9789
Bugfix #74556 stream_socket_get_name() returns empty string
...
The original bug report had it returning '\0',
but with a fix to abstract name handling (6d2d0bbda7 )
it now actually returns ''.
Neither of these are good, as per unix(7)
an empty socket name indicates an unbound name
and "should not be inspected".
2017-05-28 08:48:18 -07:00
Sara Golemon
05849a242a
Bugfix #74598 ftp:// ignores context
2017-05-27 21:12:49 -07:00
Sara Golemon
b8e0351978
Remove typo from test header
2017-05-10 16:50:19 -07:00
Anatol Belski
a581e64199
Tests to ensure BC with undocumented behavior used in hacks
...
Should become obsolete, once behaviors change.
2017-05-01 18:01:05 +02:00
Anatol Belski
09ef61e3ca
Revert "Detect invalid port in xp_socket parse ip address"
...
This reverts commit bab0b99f37 .
2017-04-27 02:49:12 +02:00
Sebastian Bergmann
7cdf520319
Fix bug #74409
2017-04-11 08:27:17 +02:00
Xinchen Hui
4bebcb84ad
Fixed condition check
2017-04-10 14:47:24 +08:00
Craig Duncan
ba6561d3cc
Fixed bug #72071 : Prevent Max-Age from being negative
2017-04-09 13:14:40 +02:00
Anatol Belski
bc2b500d3e
explicitly ignore php.ini for proc open tests
...
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.
2017-03-21 12:39:40 +01:00
Nikita Popov
2e83082605
Fix bug #74265
2017-03-17 20:19:40 +01:00
Adam Saponara
98f4ce9363
Return FALSE if error_log fails to write all bytes
2017-03-16 12:56:36 +01:00
Sara Golemon
bab0b99f37
Detect invalid port in xp_socket parse ip address
...
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.
2017-03-07 12:10:53 -08:00
Xinchen Hui
1d4eead995
Fixed bug #74148 (ReflectionFunction incorrectly reports the number of arguments)
2017-02-23 11:02:23 +08:00
Benjamin Robin
513582814b
Fixed bug #74105
...
If getrandom syscall is unavailable (ENOSYS), try to fallback on
/dev/urandom.
2017-02-17 18:42:35 +01:00
Nikita Popov
cf3ef36323
Fix memory errors in url rewriter
...
Strings aren't terminated here...
2017-02-16 17:24:07 +01:00
Nikita Popov
5432d6f982
Add json dep to test
2017-02-16 12:45:24 +01:00
Anatol Belski
89a5bd6750
Fixed bug #74090 stream_get_contents maxlength>-1 returns empty string
2017-02-15 11:22:47 +01:00
Adam Saponara
7e5cf2aa19
Fixed bug #73118
2017-02-12 00:14:59 +01:00
Christian Schmidt
714d825b62
Fix detection of isnan and isinf
...
The isnan() and isinf() are C99 macros not functions.
Also fix is_infinite(-INF) in case isinf is not defined.
2017-02-08 00:53:18 +01:00
Nikita Popov
8a8aa67844
Revert "Fix detection of isnan and isinf"
...
This reverts commit 9ea0949f43 .
2017-02-06 01:45:53 +01:00
Christian Schmidt
9ea0949f43
Fix detection of isnan and isinf
...
The isnan() and isinf() are C99 macros not functions.
Also fix is_infinite(-INF) in case isinf is not defined.
2017-02-05 18:09:04 +01:00
Remi Collet
0e21d8066b
fix test for 32bits (int -> float)
...
(cherry picked from commit 0f1ae93bfa )
2017-02-01 11:49:52 +01:00
Remi Collet
aa9742d80d
fix test for 32bits (int -> float)
2017-02-01 10:25:30 +01:00
andrewnester
f65ae82c55
Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug
2017-01-26 09:03:47 +00:00
Remi Collet
f81b7df618
Fixed bug #73965 DTrace reported as enabled when disabled
2017-01-20 17:45:15 +01:00
Marcus Bointon
280e9cb28d
DNS CAA record type implementation and tests for https://bugs.php.net/bug.php?id=73850
2017-01-18 17:23:08 +00:00
Nikita Popov
e0ca519a8b
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-16 14:11:41 +01:00
Nikita Popov
6477bb724e
Add additional serialize tests for fixed bugs
...
These have been fixed as a side-effect of the delayed __wakeup
patch.
2017-01-16 13:24:13 +01:00
Nikita Popov
291e3f0762
Merge branch 'PHP-5.6' into PHP-7.0
2017-01-10 23:19:19 +01:00
Mitch Hagstrand
ad9c552b12
Fix glob-wrapper.phpt to not fail in Windows
2017-01-10 23:18:52 +01:00
marcosptf
dcaed51ba0
pull-request/1807:
...
test for dns_get_record
2017-01-10 13:55:31 +00:00
Sara Golemon
69fbe3a9ad
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix open_basedir check for glob:// opendir wrapper
2017-01-09 16:07:33 -08:00
Nikita Popov
69058f35f8
Un-XFAIL serialization test
2017-01-10 00:07:38 +01:00
Leigh
14c72cc582
Fix check for linux getrandom syscall
2017-01-09 23:29:07 +01:00
Sara Golemon
7e49e8e797
Fix open_basedir check for glob:// opendir wrapper
...
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.
2017-01-09 11:02:50 -08:00
Joe Watkins
8dd523a216
Fixed bug #72979 money_format stores wrong length on AIX
2017-01-09 05:31:41 +00:00
Joe Watkins
8c653c163a
update ip2long_varation2 test to skip for AIX, see bug #72973
2017-01-09 05:24:44 +00:00