Dmitry Stogov
5a51da9942
Use inlined version of zval_ptr_dtor() in array_map() loop
2017-06-29 12:15:57 +03:00
Tom Van Looy
04fb3f28ff
Remove superfluous semicolons
2017-06-26 00:23:25 +02:00
Nikita Popov
035a27cbc6
Only compute callback name in error cases
...
Mostly the callback name is only used to report an error. Try to
avoid calculating it if no error occurred.
2017-06-25 18:45:59 +02:00
Sara Golemon
d09edf7b34
Minor refactor of load extension by name impl
...
Minimize the #ifdef surface area
Localize orig_libpath to retry scope
Send errors to php_error() rathern than stderr
2017-06-22 13:13:45 -04:00
Francois Laupretre
fe5c8f2b80
Allow loading PHP and Zend extensions by name
...
Allow extension name as INI 'extension=' and dl() argument
No BC break, as file name is still accepted.
When using the '-z' command line option (CLI/CGI), an absolute file name must still be provided (nothing changed here)
Change comments in example INI files
2017-06-22 12:58:15 -04:00
Joe Watkins
7945dca6ec
Merge branch 'PHP-7.1'
...
* PHP-7.1:
fix bug #74780 parse_url() borken when query string contains colon
Update NEWS
2017-06-22 11:53:27 +01:00
Joe Watkins
ed1f64e083
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix bug #74780 parse_url() borken when query string contains colon
2017-06-22 11:52:39 +01:00
jhdxr
db287b2303
fix bug #74780 parse_url() borken when query string contains colon
2017-06-22 11:52:06 +01:00
Dmitry Stogov
9fb0e6ffe2
Fixed SKIP code
2017-06-22 01:41:59 +03:00
Stanislav Malyshev
14c422a32f
Fix bug #73648 - integer overflow in substr
2017-06-20 13:29:48 -07:00
Dmitry Stogov
9c2a1f52a5
Avoid useless dereferences and separations during paramter passing.
2017-06-19 12:55:59 +03:00
Charles R. Portwood II
498716c2f7
Compatibility with libargon2 versions 20161029 and 20160821
...
libargon2 20161029 introduces the `type` parameter to the argon2_encodedlen
function that is not present in 20160821. This change ensures the Argon2
functionality introduced in RFC `argon2_password_hash` is compatible with
both versions, as the library version that package maintainers package may
differ.
2017-06-18 19:19:20 -04:00
chance garcia
d3c593a585
add test for strptime(): return false on failure
...
Closes https://github.com/php/php-src/pull/2583
2017-06-18 12:28:50 -04:00
Xinchen Hui
3e6c0b7826
Merge branch 'master' of git.php.net:/php-src
...
* 'master' of git.php.net:/php-src:
Change PHP_OS_FAMILY to "Darwin" instead of "Mac" for Darwin based systems (as suggested by Davey)
Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY)
Use "Mac" instead of "OSX" to identify macOS in PHP_OS_FAMILY
Avoid run-time checks performed at compile-time.
Fixed performance degradaton introduced in f6ac96b
NEWS
NEWS
Fix bug #74705 for collator_get_sort_key
Fixes bug #74705 Wrong ReflectionInfo for Collator::getSortKey()
NEWS
NEWS
Fixes bug #74708 reflection signatures for random_bytes+random_int
2017-06-14 10:42:37 +08:00
Remi Collet
66a018ccb4
Merge branch 'PHP-7.1'
...
* PHP-7.1:
NEWS
NEWS
Fixes bug #74708 reflection signatures for random_bytes+random_int
2017-06-13 08:15:33 +02:00
Remi Collet
3aa80c482c
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
NEWS
Fixes bug #74708 reflection signatures for random_bytes+random_int
2017-06-13 08:14:57 +02: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
Xinchen Hui
dc098b09f8
Avoiding str duplication
2017-06-13 14:00:53 +08:00
Dmitry Stogov
db4561bfff
Introduced "zif_handler" type (zif = zend internal function).
2017-06-08 16:52:39 +03:00
Dmitry Stogov
ace9fe5317
Improved new Zend Parameter Parsing API to avoid useless dereferences.
...
This derefernce made sense only for explicit paramter passing by reference, but this feature was removed in PHP-7.
The improvement is 100% backward compatible, only few "tricky" functions may be affected (e.g. extract and usort).
2017-06-08 13:03:24 +03:00
Dmitry Stogov
bdc37442bf
Fixed wrong type.
2017-06-08 13:03:02 +03:00
Dmitry Stogov
68dc754998
Avoid string reallocations in html_entity_decode() and htmlspecialchars_decode()
2017-06-06 16:09:26 +03:00
marcosptf
c7f45aab01
improve dns (checkdnsrr) test coverage
2017-06-01 08:21:27 +01:00
marcosptf
6a12b52406
test to function forward_static_call_array();
...
was added new test to standard function;
2017-06-01 08:19:26 +01:00
Dmitry Stogov
3a4fcee767
trim() micro-optimization
2017-05-30 17:14:08 +03:00
Remi Collet
0f20970216
Fix possible test failure with path > 108
...
E.g. Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /builddir/build/BUILD/php-src-32d7fa6f74b56fed8124d4dea0f98f0f9964a64e/ext/standard/tests/streams/bug74556.php on line 4
2017-05-29 11:17:32 +02:00
Sara Golemon
e60cedfbc3
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Bugfix #74556 stream_socket_get_name() returns empty string
Fix abstract name handling to be binary safe
2017-05-28 08:51:41 -07:00
Sara Golemon
e628ee9e9d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Bugfix #74556 stream_socket_get_name() returns empty string
Fix abstract name handling to be binary safe
2017-05-28 08:49:25 -07: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
41b41825d6
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Bugfix #74598 ftp:// ignores context
2017-05-27 21:15:24 -07:00
Sara Golemon
d9458aac9d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Bugfix #74598 ftp:// ignores context
2017-05-27 21:14:02 -07:00
Sara Golemon
05849a242a
Bugfix #74598 ftp:// ignores context
2017-05-27 21:12:49 -07:00
Dmitry Stogov
f00d1c72b4
Added ZEND_GET_CLASS, ZEMD_GET_CALLED_CLASS, ZEND_GET_TYPE instructions, to implement corresponding builtin functions.
2017-05-25 18:41:28 +03:00
Dmitry Stogov
27e7aea412
"Countable" interface is moved from SPL to Core
2017-05-25 12:47:43 +03:00
Sara Golemon
5dc43b4c9d
Run scripts/dev/credits
2017-05-23 16:35:36 -07:00
Dmitry Stogov
dd4a78b631
Don't separate output arguments
2017-05-23 17:18:05 +03:00
Dmitry Stogov
293d99052d
Optimized parse_url() by using "known" strings
2017-05-22 23:23:12 +03:00
Dmitry Stogov
a08723d3d3
Use interned empty and "one char" strings.
2017-05-18 17:59:59 +03:00
Dmitry Stogov
2649a9e1a9
Removed useless dereferences
2017-05-17 21:01:08 +03:00
Anatol Belski
774e7ea8b4
Merge branch 'PHP-7.1'
...
* PHP-7.1:
fix test
2017-05-16 15:10:13 +02:00
Anatol Belski
b73a73da25
fix test
2017-05-16 15:09:02 +02:00
Anatol Belski
d499720b99
Merge branch 'PHP-7.1'
...
* PHP-7.1:
add test for bug #74589
2017-05-16 14:26:35 +02:00
Anatol Belski
71f8c4dcfd
add test for bug #74589
2017-05-16 14:25:27 +02:00
Sara Golemon
81064cd045
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Remove typo from test header
2017-05-10 16:50:47 -07:00
Sara Golemon
90bd4be3f9
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Remove typo from test header
2017-05-10 16:50:37 -07:00
Sara Golemon
b8e0351978
Remove typo from test header
2017-05-10 16:50:19 -07:00
Craig Duncan
e946d074dd
Ensure number_format() doesn't include sign for zero
2017-05-09 10:17:19 +01:00
Anatol Belski
c0e9c21e98
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Tests to ensure BC with undocumented behavior used in hacks
2017-05-01 18:07:05 +02:00
Anatol Belski
023cbdb2ca
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Tests to ensure BC with undocumented behavior used in hacks
2017-05-01 18:06:09 +02: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