summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Remove some uses of deprecated internal_encoding settings in testsNikita Popov2019-04-1752-72/+43
|
* Fix internal_encoding fallback in mbstringNikita Popov2019-04-177-117/+157
| | | | | | | | By introducing a hook that is called whenever one of internal_encoding / input_encoding / output_encoding changes, so that mbstring can adjust it's internal state. This also makes internal_encoding work with zend multibyte.
* Eliminate FETCH $GLOBALS followed by FETCH_DIM/UNSET_DIM/ISSET_ISEMPTY_DIMDmitry Stogov2019-04-171-0/+44
|
* Merge branch 'PHP-7.3' into PHP-7.4Derick Rethans2019-04-172-0/+23
|\
| * Merge branch 'PHP-7.2' into PHP-7.3Derick Rethans2019-04-172-0/+23
| |\
| | * Fixed bug #77909: DatePeriod::__construct() with invalid recurrence count valueIgnace Nyamagana Butera2019-04-172-0/+23
| | | | | | | | | | | | | | | | | | Improve error message on invalid reccurence count Adding test when reccurence is -1
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-172-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix tests for non English environments
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-04-172-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Fix tests for non English environments
| | * Fix tests for non English environmentsChristoph M. Becker2019-04-172-2/+2
| | |
* | | ext/pcre/config0.m4: add ac_cv_have_pcre2_jit variableArtem Panfilov2019-04-161-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The HAVE_PCRE_JIT_SUPPORT check uses AC_RUN_IFELSE, which is not available when cross-compiling. As a fallback, JIT support is enabled based on CPU architecture. However, this may be wrong, e.g. when the JIT the feature was not enabled in the pcre2 build. Add a cache variable for the PCRE JIT feature to make it possible to override the check.
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-161-0/+1
|\ \ \ | |/ /
| * | Fix HT flags copying wrt iterator countNikita Popov2019-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HT_FLAGS() includes the full flag word, including the iterator count. When we're fully reassigning it, we need to make sure that we either really do want to copy the iterator count (as in some cases in array.c) or we need to mask only the actual flag byte. Add an assert to hash_iterators_del() to make sure the iterator count is non-zero (which is how I ran into this) and make sure that the iterator count is correctly preserved during array splicing.
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-161-0/+52
|\ \ \ | |/ /
| * | Fix second part of bug #77903Nikita Popov2019-04-161-4/+4
| | | | | | | | | | | | | | | | | | When a HT iterator is one past the end and we rehash, we need to make sure that it is move to the new one past the end position, to make sure that newly inserted elements are picked up.
| * | Partial fix for bug #77903Nikita Popov2019-04-161-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the hash position APIs, make sure we always advance to the next non-undef element and not just when the position is 0 (similar to what foreach does). This can happen when the position of an ArrayIterator is one past its current end and a new element is inserted not directly at that position because the array is packed. There is still a bug here (as shown in the tests), but this is a separate issue that also affects plain array iteration in foreach.
* | | Use curl_mime_*() functions if availableChristoph M. Becker2019-04-161-1/+50
| | | | | | | | | | | | | | | As of curl 7.56.0, `curl_formadd()` is deprecated in favor of `curl_mime_*()`, so we use the latter if available.
* | | Add test for curl_version()Rodrigo Prado2019-04-151-0/+31
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-152-1/+14
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-04-152-1/+14
| |\ \ | | |/
| | * Fixed bug #77895Nikita Popov2019-04-152-1/+14
| | |
* | | Fix saproxy_property_write signatureNikita Popov2019-04-151-1/+2
| | |
* | | Correctly destroy reference in ArrayObject sortNikita Popov2019-04-151-1/+2
| | | | | | | | | | | | | | | The reference may be captured in an exception backtrace, in which case the refcount may be more than one.
* | | Try to fix stat_variation3-win32.phptNikita Popov2019-04-151-1/+1
| | | | | | | | | | | | | | | | | | After fixing comparison operator typos in f73c104927b64d6137cbe42bf42260d9349cbd02 this test is failing. I believe the comparison here should be using < rather than ==.
* | | Fix last maybe uninit warnings on 7.4Nikita Popov2019-04-154-4/+9
| | | | | | | | | | | | | | | Most of these only occur under GCC 5. Not fond of all the workarounds (especially the PDO one), but it gets us a clean build...
* | | Avoid maybe uninit warning in libmagicNikita Popov2019-04-152-3/+3
| | | | | | | | | | | | GCC 5 false positive, gone in newer versions.
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-151-1/+1
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-04-151-1/+1
| |\ \ | | |/
| | * Fix uninitialized cert_capturedNikita Popov2019-04-151-1/+1
| | | | | | | | | | | | This is a legimitimate bug and also shows up under valgrind.
* | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-152-0/+46
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-04-152-0/+46
| |\ \ | | |/
| | * Fixed bug #77882Nikita Popov2019-04-152-0/+46
| | |
* | | Merge branch 'PHP-7.3' into PHP-7.4Côme Chilliet2019-04-151-1/+3
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.3: Updated NEWS Fix a NULL dereferencing crash in php-ldap
| * | Fix a NULL dereferencing crash in php-ldapCôme Chilliet2019-04-151-1/+3
| | | | | | | | | | | | | | | | | | | | | This happens when parsing a control response to a VLV request which does not contain a "context" string. See bug #77869
* | | Remove functions from func_info that were removed in PHP 7Rodrigo Prado2019-04-151-76/+0
| | |
* | | Fix incorrect compare_stats operatorNikita Popov2019-04-155-7/+7
| | |
* | | Remove HAVE_* for always available extensionsGabriel Caruso2019-04-146-13/+0
| | |
* | | Disable PACKAGE_* preprocessor symbolsPeter Kokot2019-04-136-51/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf defines PACKAGE_* symbols: - PACKAGE_NAME - PACKAGE_VERSION - PACKAGE_TARNAME - PACKAGE_STRING - PACKAGE_BUGREPORT - PACKAGE_URL and appends them to the generated config.h.in files. With AC_INIT change via afd52f9d9986d92dd0c63832a07ab1a16bf11d53 where package version, URL, bug report location and similar meta data are defined, these preprocessor macros are then non empty strings in the generated configuration header file. When using phpize, PHP shares the config files in extensions, warnings of redefined macros appear, such as: - `warning: 'PACKAGE_NAME' macro redefined` This patch now disables these non utilized symbols in the generated config header files. Better practice would be to include only API specific headers where needed but this would require even more refactorings. Some extensions such as pcre, pgsql, and pdo_pgsql solve this issue by undefining some of these symbols before including the library configuration headers in the code also. Because these symbols can be defined by any library which uses Autotools. Additionally, the unused PACKAGE_* symbols were cleaned for the bundled libmbfl library and with this patch not needed undef code removed.
* | | Try to fix windows buildNikita Popov2019-04-121-1/+1
| | | | | | | | | | | | noreturn attribute has to be on the declaration as well.
* | | Fix strict aliasing violation in phpdbgNikita Popov2019-04-121-1/+1
| | | | | | | | | | | | | | | | | | By explicitly computing the message length from bytes. This also makes sure that the length is interpreted in an endianness-independent manner.
* | | Don't use php_strtok_r in build_tablenameNikita Popov2019-04-121-19/+13
| | | | | | | | | | | | | | | | | | | | | This is unnecessary convoluted... we just want to find the position of the dot. Using php_strtok_r requires a copy of the string, and the implementation also relied on the specific semantics of the scratch space that strtok_r uses.
* | | Fix uninit warning in gd.cNikita Popov2019-04-121-1/+1
| | | | | | | | | | | | This matches the upstream implementation.
* | | Avoid uninit warning in ftpNikita Popov2019-04-121-57/+59
| | |
* | | Remove dubious memcmp optimization in iconvNikita Popov2019-04-121-1/+1
| | | | | | | | | | | | | | | This violates strict aliasing, and appears entirely unnecessary -- the compiler can optimize fixed size memcmp's by itself.
* | | Avoid uninit warnin in http_fopen_wrapperNikita Popov2019-04-121-7/+7
| | | | | | | | | | | | | | | | | | This one looks semi-legit, in case php_stream_eof() returns false but php_stream_get_line() fails. Not totally sure this cannot happen, so rewriting to check both conditions at once.
* | | Avoid misc uninitialized variable warningsNikita Popov2019-04-127-20/+20
| | |
* | | Avoid uninitialized variable warnings in gmpNikita Popov2019-04-121-9/+6
| | |
* | | Add test for get_cfg_var with array variableNikita Popov2019-04-122-7/+31
| | | | | | | | | | | | | | | | | | And fix incorrect variable shadowing in add_config_entry(). However, the test doesn't hit this case, as it requires a nested array. I'm not sure if it's possible to produce nested arrays from ini?
* | | Avoid unitialized variable warning in soapNikita Popov2019-04-121-22/+28
| | | | | | | | | | | | | | | Extract envelope fetch into separate function, so the control flow becomes more obvious.
* | | Include libpq-fs.h on Windows, tooChristoph M. Becker2019-04-121-3/+1
| | | | | | | | | | | | That's more future proof than defining hard-coded macros.
* | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-123-7/+7
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Fix tests wrt. internationalization