Nikita Popov
cc89d26096
Fix ifdef position
...
Hopefully fixes the release build...
2019-06-12 13:50:30 +02:00
Nikita Popov
cdefeb715b
Use memset instead of brace initialization
...
Apparently {{0}} is not enough ... let's not rely on structure
layout specifics here.
2019-06-12 13:50:23 +02:00
Derick Rethans
ec57ba5edd
Update CREDITS for PHP 7.4.0alpha1
2019-06-12 12:24:35 +01:00
Nikita Popov
65ff4dddba
Remove always true condition
2019-06-12 13:17:25 +02:00
Nikita Popov
52d80ccd24
Remove MYSQLND_LLU_SPEC/MYSQLND_LL_SPEC
...
No longer used, replaced by PRIu64/PRIi64.
2019-06-12 13:17:25 +02:00
Nikita Popov
e1e275eefd
Fix mysqlnd printf modifiers
...
By moving the the standard macros...
2019-06-12 13:17:25 +02:00
Nikita Popov
3e4b9659d3
Fix warnings in mysqlnd_alloc.c
...
And also separate the PHP_DEBUG codepaths more, to avoids having an
ifdef every other line...
2019-06-12 13:17:25 +02:00
Nikita Popov
9fa552f393
Fix incorrect enum value uses in xmlrpc
2019-06-12 13:17:25 +02:00
Nikita Popov
fdfb390f07
Remove unused php_mbX_int_to_char() functions
2019-06-12 13:17:25 +02:00
Nikita Popov
5be772a19c
Fix incorrect printf modifiers
2019-06-12 13:17:25 +02:00
Nikita Popov
2134cc25d2
Guard functions by SO_PASSCRED
2019-06-12 13:17:25 +02:00
Christoph M. Becker
37d0c7b0e4
Simplify GD null byte injection tests
...
These tests actually check that no file with a name containing a NUL is
created by the GD image output functions. This is superfluous, since
it is sufficient to check that the function failed, and that an
appropriate warning has been raised.
We also add missing nullbyte injection tests.
2019-06-12 12:04:01 +02:00
Nikita Popov
2f1d822d78
Preserve CFLAGS/LDFLAGS for curl ssl check
...
We need to add the curl-specific flags, but we also need to preserve
the general flags, to keep around important stuff like -m32.
2019-06-12 11:54:13 +02:00
Nikita Popov
365a905e00
Suppress int to char conversion warnings
2019-06-12 11:54:13 +02:00
Nikita Popov
d2921af348
Use labs() on long integer
2019-06-12 11:54:13 +02:00
Nikita Popov
1d8c323b64
Don't use sqlite3_aggregate_count()
...
This function has been deprecated, with the recommendation that
the count should be explicitly tracked in the aggregate context,
if it is needed.
2019-06-12 11:54:12 +02:00
Nikita Popov
26a1b2e28e
Fix type mismatch in two get_col callbacks
2019-06-12 11:54:12 +02:00
Nikita Popov
f601eb15e6
Fix -Wmissing-braces warnings
...
Unfortunate that = {} is a GNU extension.
2019-06-12 11:54:12 +02:00
Derick Rethans
06ddc025ac
Update credits pre-release
2019-06-12 08:58:11 +01:00
Joe Watkins
e2eb1ee1e3
fix flaky zip tests, order is OS dependent
2019-06-12 09:47:47 +02:00
Remi Collet
66bd7875f8
add comment about pg_config/pkgconfig
2019-06-12 09:39:11 +02:00
Nikita Popov
b654a07492
Revert option rename
...
Let's keep this at --with-password-argon2 to avoid churn, I don't
think we have a strong motivation to rename this one.
2019-06-12 09:28:25 +02:00
Nikita Popov
852ab5d83f
Use %define api.pure instead of %pure-parser
...
%pure-parser is deprecated. In our case there is no difference between
true & full, as we don't use locations.
2019-06-12 09:26:34 +02:00
Joe Watkins
c54a247cb0
fix flaky sockets test - form of response is OS dependent
2019-06-12 08:47:35 +02:00
Joe Watkins
abe38b5e48
fix flaky test on OSX
2019-06-12 08:33:07 +02:00
Joe Watkins
eac238fb6c
Revert "ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library"
...
This reverts commit 1e265174ed .
2019-06-12 08:00:55 +02:00
Joe Watkins
2dfa495311
fix flaky gd tests
2019-06-12 07:52:28 +02:00
Hugh McMaster
bdcef51bcb
ext/standard: Use PKG_CHECK_MODULES to detect the Argon2 library
2019-06-12 06:54:54 +02:00
Hugh McMaster
9d61036651
ext/ldap: Use PKG_CHECK_MODULES to detect the libsasl2 library
2019-06-11 17:11:53 +02:00
Nikita Popov
fa5513aefe
Remove unused gmp_unary_ui_op() function
2019-06-11 17:01:29 +02:00
Nikita Popov
e5411e17c7
Remove unused _setEdgePixel() and getPixelOverflowColorTC() functions
2019-06-11 16:59:12 +02:00
Nikita Popov
5c844c1d36
Fix fabs warning in gd_interpolation.c
...
Matches upstream code.
2019-06-11 16:57:24 +02:00
Nikita Popov
2290102172
Remove safeboolean use in gd_jpeg.c
...
This is a backport of
e5502c7a3f/src/gd_jpeg.c .
2019-06-11 16:54:45 +02:00
Nikita Popov
0849a621fd
Fix abs(long) warnings in gd.c
...
I'm fixing this using (int) casts instead of labs() because this is
what upstream GD does.
2019-06-11 16:50:25 +02:00
Nikita Popov
fc65da5c59
Fix 32-bit warnings in timelib
...
This has already been fixed upstream in
4df262e758
so I'm backporting this change.
2019-06-11 16:14:10 +02:00
George Peter Banyard
7f5f277cf2
Remove unnecessary short_open_tag INI directive in tests
...
Closes GH-4249.
2019-06-11 16:14:10 +02:00
Nikita Popov
8d3a2a4a12
Remove ext/ldap/tests/bug76248.phpt
...
I wasn't able to make this test work reliably in CI, and the thing
it's testing does not seem worth spending more time on it.
2019-06-11 15:47:01 +02:00
Nikita Popov
83e0bfb50c
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-11 15:41:05 +02:00
Tyson Andre
5d3e3a62a2
Be more precise about possible types for mysqli methods
...
mysqli has an uncommon approach to 64-bit compatibility:
it will convert numbers that can't be represented on 32-bit
platforms to a string.
This is documented at
https://www.php.net/manual/en/mysqli-stmt.affected-rows.php#refsect1-mysqli-stmt.affected-rows-returnvalues
So if there's a query to a remote mysqli server that affects
more than 2.2 billion rows, then the opcache inference might be
incorrect.
(It's possible to add a MAY_BE_STRING_ON_32_BIT_PLATFORM bitflag macro to
account for this, but I don't think there's a need or want to?)
Patches 3162285b86
This is based on the list of php 7.4 functions using
MYSQLI_RETURN_LONG_INT in mysqli_api.c
2019-06-11 15:40:33 +02:00
Tyson Andre
07c63c6fdf
Fix opcache signatures for mysqli_stat
...
See mysqli_api.c and https://www.php.net/manual/en/mysqli.stat.php
2019-06-11 15:39:59 +02:00
Tyson Andre
7350e808c5
Fix bug in opcache flags for mysqli_get_charset
...
https://www.php.net/manual/en/mysqli.get-charset.php
tests/mysqli_field_seek.phpt has a test of this returning an object.
Looking at the source in ext/mysqli/mysqli_nonapi.c,
this should be object|null, not array|null
This might actually cause bugs in opcache's inferences,
(no proof of this)
so it might make sense to pull this patch into an earlier minor version.
2019-06-11 15:39:59 +02:00
Nikita Popov
89b2d88659
Register class before fetching parent
...
We want the class declaration to be available while compiling the
parent class.
2019-06-11 13:09:33 +02:00
Nikita Popov
51fb8dc422
Add specialized pair construction API
...
Closes GH-3990.
2019-06-11 12:29:55 +02:00
Nikita Popov
eecd8961d9
Add get_mangled_object_vars() function
2019-06-11 10:28:29 +02:00
Joe Watkins
c2a78c7cac
i386 build
2019-06-11 10:23:37 +02:00
Tyson Andre
5c8b702e77
Fix typo in opcache function flag info (mage->image)
...
ext/gd/gd.c seems to return null for wrong parameter count, false for
error, and long otherwise. See https://php.net/imagecolorallocate
In php 8.0, the MAY_BE_NULL can probably be removed.
2019-06-11 09:08:23 +02:00
Tyson Andre
b921564a35
Clean up opcache func flags for set_socket_blocking
...
It was removed in php 7.0. See https://php.net/set_socket_blocking
2019-06-11 09:05:57 +02:00
Tyson Andre
98b487e244
Fix a typo in opcache func info for "get_parrent_class"
...
This should only have one r.
http://php.net/get_parent_class mentions that it returns string|false
Also, I'm not 100% sure if this is right - should this include
MAY_BE_NULL to handle the case of too many parameters?
(then again, get_called_class() also returns null in the global scope)
```
php > var_export(get_parent_class(2,3));
Warning: get_parent_class() expects at most 1 parameter, 2 given in php
shell code on line 1
NULL
```
2019-06-11 08:59:12 +02:00
Hugh McMaster
1e265174ed
ext/pgsql: Use PKG_CHECK_MODULES to detect the pq library
2019-06-11 08:53:49 +02:00
Christoph M. Becker
27e592d3ce
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77937 : preg_match failed
2019-06-11 08:44:54 +02:00