Dmitry Stogov
759f4ecd8b
Keep lowercased parent class name as second argument of DECLARE_CLASS to avoid extra work at run-time
2019-06-25 11:30:58 +03:00
Nikita Popov
43dd1ac570
Avoid confusing gotos in phar_split_cache_list
2019-06-25 10:25:44 +02:00
Nikita Popov
31123de0c8
Fix EVP_PKEY leak in phar
2019-06-25 10:25:44 +02:00
Nikita Popov
3a36e68c49
Don't force USE_ZEND_ALLOC=0 in run-tests.php
...
USE_ZEND_ALLOC=0 is useful not just for valgrind ... we should not
force USE_ZEND_ALLOC=1 if the user explicitly disabled it.
2019-06-25 10:25:44 +02:00
Nikita Popov
46bad1d679
Fix region leak in mb_ereg_replace
2019-06-25 10:25:44 +02:00
Dmitry Stogov
0f29fb5cd8
Fixed bug 78175 (Preloading must store default values of static variables and properties)
2019-06-24 20:32:27 +03:00
Christoph M. Becker
94df6dc3fd
Split test case
...
This test is failing on AppVeyor almost all of the time, so splitting
it seems appropriate. This also allows us to rid php_cli_server_stop()
which was only used by this test case.
2019-06-24 14:08:11 +02:00
Nikita Popov
df27bfe58b
Add debugging code to time_sleep_until test
2019-06-22 10:19:49 +02:00
Derick Rethans
d3112adf7f
Merge branch 'bug67348-mysqli-stat' into PHP-7.4
2019-06-21 16:52:15 +01:00
Derick Rethans
579562176b
Fixed bug #67348 : Reading $dbc->stat modifies $dbc->affected_rows
2019-06-21 16:51:52 +01:00
Nikita Popov
152ccfb08d
Fix stack leak in phpdbg
2019-06-21 17:01:25 +02:00
Nikita Popov
a7bcfee9c9
Fix prompt leak in phpdbg
2019-06-21 17:01:18 +02:00
Christoph M. Becker
eec5d2a25f
Properly shut down font cache mutex
...
Since the font cache mutex in set up in MINIT, we have to shut it down
in MSHUTDOWN.
2019-06-21 16:00:47 +02:00
Andrey Hristov
1da15600ae
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-21 16:33:01 +03:00
Andrey Hristov
8326f95fe3
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 16:32:13 +03:00
Andrey Hristov
102c64e827
Add explicit cast to uint32_t.
...
It works even without it but explicit stuff is better. The compiler probably converts the 16-bit
uint16_t to uint32_t before doing the shift.
2019-06-21 16:31:56 +03:00
Nikita Popov
021bb35aec
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-21 15:08:12 +02:00
Nikita Popov
66e4b78519
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 15:07:59 +02:00
Nikita Popov
99f3e0f0ed
Fix PKCS12 leak in openssl
2019-06-21 15:07:37 +02:00
Nikita Popov
c939a67866
Fix d leak in ecc openssl_pkey_new
2019-06-21 15:07:32 +02:00
Nikita Popov
dfe6f0c1c6
Fix netscape spki leak in openssl
2019-06-21 15:07:26 +02:00
Nikita Popov
a0da2fb2b7
Fix X509 leak in openssl_pkcs7_verify()
2019-06-21 15:07:18 +02:00
Nikita Popov
e0bafc6da4
Fix CSR leaks in openssl
2019-06-21 15:07:10 +02:00
Nikita Popov
90cb3743be
Free cert in php_openssl_load_stream_cafile()
...
X509_STORE_add_cert() increments the refcount of the cert, so we
should free it here.
2019-06-21 15:07:00 +02:00
Nikita Popov
1de7c4b919
Fix memory leaks in browscap parsing
...
Also make the interning a bit more efficient, no need to check for
a "real" interned string every time, we can also store that in the
HT.
2019-06-21 12:56:37 +02:00
Nikita Popov
f781c8f110
Fix leak in bcpowmod
2019-06-21 12:56:28 +02:00
Nikita Popov
e7ef2b52db
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-21 12:56:12 +02:00
Nikita Popov
414db07bdb
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-21 12:55:12 +02:00
Niklas Keller
fea9f93166
Fix memory leak in TLS matches_san_list
2019-06-21 12:54:30 +02:00
Dmitry Stogov
e1e8e670df
Cleanup
2019-06-21 11:43:17 +03:00
Nikita Popov
a84771573d
Make ZEND_SEND_* flags unsigned
...
These may be shifted to the limit for the arg mask.
2019-06-21 10:24:34 +02:00
Nikita Popov
8227e0f747
Avoid ub in shift overflow check
...
Also fix an off-by-one error. While 1 << 63 overflows, -1 << 63 does
not.
2019-06-21 10:24:27 +02:00
Christoph M. Becker
81fd113506
Support TGA reading
...
We add PHP bindings for libgd's features to read TGA files, which are
available as of libgd 2.1.0.
As PHP's bundled libgd doesn't yet include the respective features of the
external libgd, we add these.
Since TGA has no easily recognizable file signature, we don't add TGA
support for imagecreatefromstring() or getimagesize() and friends.
2019-06-20 23:40:51 +02:00
Christoph M. Becker
2b4fc9eb9c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78189 : file cache strips last character of uname hash
2019-06-20 18:01:02 +02:00
Christoph M. Becker
a85254b898
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78189 : file cache strips last character of uname hash
2019-06-20 17:59:59 +02:00
Christoph M. Becker
fcd6f2de60
Fix #78189 : file cache strips last character of uname hash
...
We must not forget to increase `len` by one to cater to the directory
separator.
2019-06-20 17:58:32 +02:00
Nikita Popov
59974000eb
Remove leftover check
...
This is checked below now in a way that handles misaligned pointers.
2019-06-20 17:24:22 +02:00
Nikita Popov
dd6d471834
Handle misaligned ifreq on macos
2019-06-20 17:24:16 +02:00
Nikita Popov
d80f0ff6c0
Handle gr_mem misalignment on macos
2019-06-20 17:24:06 +02:00
Christoph M. Becker
a768271d91
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Update NEWS
2019-06-20 17:00:33 +02:00
Christoph M. Becker
a0f370e78a
Update NEWS
2019-06-20 16:59:39 +02:00
Christoph M. Becker
ecae9100dc
Rename test file to reflect the appropriate ticket number
2019-06-20 16:54:17 +02:00
Nikita Popov
6165c23475
Check for dlsym as well
...
For some reason, when using GCC with address sanitizer, dlopen
is available without -ldl, but dlsym still needs it. Explicitly check
dlsym so we add the library.
2019-06-20 16:23:04 +02:00
Nikita Popov
26ac6cb6be
Handle gethostbyname misalignment on macos
2019-06-20 16:22:40 +02:00
Nikita Popov
27d3373496
SOAP: Avoid indexing into null pointer
2019-06-20 16:22:34 +02:00
Nikita Popov
f127d77eef
FFI: Use signed arithmetic for pointer offset
...
offset can be negative here, using signed arithmetic avoids ubsan
warnings.
2019-06-20 16:22:26 +02:00
Nikita Popov
d4de127dd8
In php_needle_char() use well-defined double->integer cast
...
...by going through zval_get_long(). Generally out of range double
casts are undefined.
2019-06-20 16:22:10 +02:00
Nikita Popov
e8ae19223c
Avoid address calculation overflow
2019-06-20 16:22:04 +02:00
Nikita Popov
e4455c32ed
Bail out earlier in zend_memnrstr
...
To avoid decrementing a null pointer lateron. As we need to check
for NULL here anayway, we should take the chance to bail out right
away.
2019-06-20 16:21:53 +02:00
Nikita Popov
a59e0cfce5
Disable float division by zero sanitizer for div_function
...
We intentionally divide by zero here and want to get IEEE-754
semantics.
2019-06-20 16:21:47 +02:00