Dmitry Stogov
f5664a1492
PCRE cache is "thread-local"
2017-11-01 15:13:49 +03:00
Dmitry Stogov
5baf657db3
Revert "Fixed string interning during constants substitution"
...
This reverts commit e0924c52fc
.
2017-11-01 10:39:47 +03:00
Dmitry Stogov
e0924c52fc
Fixed string interning during constants substitution
2017-11-01 10:34:39 +03:00
Xinchen Hui
a8a17a72b0
RC manipulation cleanup
2017-11-01 10:25:10 +08:00
Dmitry Stogov
0056f52f50
Use interned strings for hash algorithm names (not copyied into SHM)
2017-11-01 02:40:39 +03:00
Dmitry Stogov
8897c80956
Use interned strings for stream transports
2017-11-01 02:39:09 +03:00
Dmitry Stogov
ed5b4d5c99
Use Zend MM heap
2017-11-01 02:38:26 +03:00
Dmitry Stogov
fcb13fab6e
Avoid reference counting (the value may be a persistent string)
2017-11-01 01:31:47 +03:00
fandrieu
b72af30a53
Fix #74243 : allow locales.conf to drive datetime format
...
Add a driver attribute, PDO::DBLIB_ATTR_DATETIME_CONVERT, to control.
2017-10-31 17:52:59 -04:00
Adam Baratz
2ecfcdaf1b
Use size_t instead of int, use more specific format string
2017-10-31 16:43:35 -04:00
Dmitry Stogov
bbfd0df9d3
Use interned strings for persistent stream wrappers and filters
2017-10-31 18:51:35 +03:00
Nikita Popov
5b044aacbe
Use known strings for reflection properties
2017-10-31 15:46:55 +01:00
Sammy Kaye Powers
98d6d1189c
Remove decade-old commented-out code
2017-10-31 14:46:16 +00:00
Dmitry Stogov
998794f584
Always calculate calculate string hash value on attempt of interning
2017-10-31 15:35:44 +03:00
Dmitry Stogov
ca0690358e
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Fix year
Add /nologo
These functions are always available, exif can't be cross version compiled anyway
2017-10-31 15:35:14 +03:00
Dmitry Stogov
160f6d6267
single check is enough
2017-10-31 11:07:42 +03:00
Kalle Sommer Nielsen
b7a5e71a33
These functions are always available, exif can't be cross version compiled anyway
2017-10-31 08:50:30 +01:00
Dmitry Stogov
2e83924682
Added zend_hash_add_new_mem/zend_hash_str_add_new_mem. Use them to add new elements into PCRE cache (we checked the existance before).
2017-10-31 10:43:10 +03:00
Dmitry Stogov
974a8f8ad2
Use internet strings for EG(ini_entries)
2017-10-31 02:16:46 +03:00
Nikita Popov
7b16205f8b
Remove some unnecessary duplications
2017-10-30 22:48:20 +01:00
Dmitry Stogov
fcc08ce19f
Prevent reference-counting on persistent zvals (internal constants, default properties and constants of internal classes).
...
New macro ZVAL_COPY_OR_DUP() is used perform duplication, if necessary.
This should eliminate related race-coditions in ZTS build and prevent reference-counting bugs after unclean shutdown.
2017-10-30 23:13:10 +03:00
Anatol Belski
0fe6724fce
Rethink the version checks
...
As the actual behavior change happens with ICU >= 58, the new
functionality should stay same in the lower versions. This comply also
with lower PHP versions so far.
2017-10-30 19:52:27 +01:00
Anatol Belski
2b43c623b9
Fix typo
2017-10-30 18:28:39 +01:00
Anatol Belski
3ce3e96af3
Proper ICU version check for restriction levels availability
2017-10-30 18:21:14 +01:00
Anatol Belski
c35f69327c
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Add missing ICU version check
2017-10-30 18:17:20 +01:00
Anatol Belski
e3b2859c8a
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Add missing ICU version check
2017-10-30 18:16:47 +01:00
Anatol Belski
6eb4daabeb
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Add missing ICU version check
2017-10-30 18:16:03 +01:00
Anatol Belski
68c500421c
Add missing ICU version check
2017-10-30 18:15:26 +01:00
Jakub Zelenka
8b07cc4914
Merge branch 'PHP-7.2'
2017-10-30 16:44:33 +00:00
Jakub Zelenka
19c62e83fa
Merge branch 'PHP-7.1' into PHP-7.2
2017-10-30 16:43:36 +00:00
Jakub Zelenka
7c2031bfca
Merge branch 'PHP-7.0' into PHP-7.1
2017-10-30 16:42:23 +00:00
Jakub Zelenka
fc169d2133
Prevent leaking x509 and csr resources if it is not requested
...
All functions using php_openssl_x509_from_zval or php_openssl_csr_from_zval
with makeresource equal to 0 do not deref the resource which means there
is a leak till the end of the request. This can cause issues for long
running apps. It is a generic solution for bug #75363 which also covers
other functions.
2017-10-30 16:40:56 +00:00
Jakub Zelenka
d8ccffa79a
Extend and speed up pkey export tests
2017-10-30 16:40:56 +00:00
Jakub Zelenka
e78e839e53
Rewrite openssl_csr_get_subject test to improve coverage
2017-10-30 16:40:56 +00:00
Jakub Zelenka
528aa540b4
Add openssl_csr_get_public_key test
2017-10-30 16:40:56 +00:00
Jakub Zelenka
548798818b
Extend openssl_pkcs7_* tests to cover resource cert
2017-10-30 16:40:56 +00:00
Jakub Zelenka
55d92413b9
Fix cleaning tmp output file in openssl_csr_export_to_file test
2017-10-30 16:40:56 +00:00
Jelle van der Waa
5812f7a8d3
openssl: add basic openssl_csr_export_to_file tests
...
Add a basic test for openssl_csr_export_to_file.
2017-10-30 16:40:56 +00:00
Jakub Zelenka
628a52d365
Extend openssl_csr_sign test to cover cert resource
2017-10-30 16:40:56 +00:00
Jakub Zelenka
80191eebec
Set different invalid path in openssl_pkcs12_export so it is more unlikely to exist
2017-10-30 16:40:55 +00:00
Jakub Zelenka
cd66aad141
Extend openssl_x509_parse to cover cert resource
2017-10-30 16:40:55 +00:00
Jakub Zelenka
c1d98588a2
Rename and test resource cert in openssl_x509_checkpurpose test
2017-10-30 16:40:55 +00:00
Jakub Zelenka
d23d4fd61b
Extend openssl_x509_check_private_key to test resource cert
2017-10-30 16:40:55 +00:00
Jakub Zelenka
be0758b75a
Extend openssl_x509_fingerprint test to cover resource cert with sha1
2017-10-30 16:40:55 +00:00
Dmitry Stogov
0a8d834a7f
Fixed test
2017-10-30 18:37:03 +03:00
Sara Golemon
bbf57b114f
Revert array_slice passthrough optimization
...
This reverts commit fabb5b7a74
.
This reverts commit e751e6ceba
.
2017-10-30 11:08:28 -04:00
Joe Watkins
ccba0f5948
Merge branch 'PHP-7.2' of git.php.net:/php-src into PHP-7.2
...
* 'PHP-7.2' of git.php.net:/php-src:
Yet one attempt to mitigate the unzip error on AppVeyor
Ensure SDK is checked out before asking for version
Fix fetching the SDK version
Fix SDK version comparison and add more verbosity
Don't use the cache dependency, SDK version is handled in script
Remove status check on the SDK repo and add version check
Use abbrev
Catch with the latest AppVeyor unzip errors
Fixed type inference
2017-10-30 14:16:38 +00:00
Joe Watkins
37b0ad5537
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src:
Yet one attempt to mitigate the unzip error on AppVeyor
Ensure SDK is checked out before asking for version
Fix fetching the SDK version
Fix SDK version comparison and add more verbosity
Don't use the cache dependency, SDK version is handled in script
Remove status check on the SDK repo and add version check
Use abbrev
Catch with the latest AppVeyor unzip errors
Fixed type inference
2017-10-30 14:16:27 +00:00
Joe Watkins
06606ab4be
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix bug #75464 Wrong reflection on SoapClient::__setSoapHeaders
2017-10-30 14:15:29 +00:00
Joe Watkins
118db2d2f7
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #75464 Wrong reflection on SoapClient::__setSoapHeaders
2017-10-30 14:14:21 +00:00