summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4'Christoph M. Becker2020-07-154-31/+31
|\ | | | | | | | | * PHP-7.4: Fix tests regarding negative fileinode()
| * Fix tests regarding negative fileinode()Christoph M. Becker2020-07-154-31/+31
| | | | | | | | | | The results of `fileinode()` may be negative due to wrap-around behavior (at least on Windows as of PHP 7.4.0).
* | Check type guard on result of FETCH_DIM_R/IS instructionsDmitry Stogov2020-07-154-24/+190
| |
* | Merge branch 'PHP-7.4'Nikita Popov2020-07-151-18/+14
|\ \ | |/ | | | | | | * PHP-7.4: Fix bug #78008: dns_check_record() always return true on Alpine
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-07-151-18/+14
| |\ | | | | | | | | | | | | * PHP-7.3: Fix bug #78008: dns_check_record() always return true on Alpine
| | * Fix bug #78008: dns_check_record() always return true on AlpineAndy Postnikov2020-07-151-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | - free handle before return result - cleaned up remaining usage of MAXPACKET - update dns_get_mx() to use the same approach Closes GH-5854.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-07-151-0/+22
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #79820
| * | Fixed bug #79820Christopher Broadbent2020-07-152-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to what is done for ReflectionType itself, copy the type name stored inside ReflectionProperty. Also make sure the type field is always initialized for dynamic properties. This is a non-issue in PHP 8, because we store a pointer to the property_info there, rather than a copy.
| * | Merge remote-tracking branch 'upstream/PHP-7.4' into PHP-7.4Nikita Popov2020-07-141-8/+8
| |\ \ | | | | | | | | | | | | | | | | * upstream/PHP-7.4: Fix test for x86 Windows
* | | | Reduce scope of preload compiler_optionsNikita Popov2020-07-141-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only set preloading compiler_options while executing the preload file, not when performing linking afterwards. Otherwise options like IGNORE_INTERNAL_CLASSES will hide classes from inheritance verification.
* | | | Fix preloading of union typed property inherited from internal classNikita Popov2020-07-142-26/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tricky edge case: We inherit a property from an internal class, in which case no property duplication takes place. We should not try to persist the property info in that case. This didn't really matter previously, but now that the property has some non-interned owned data (the type), we need to make sure we don't try to free that.
* | | | Check for name vs ce in a few more placesNikita Popov2020-07-142-20/+17
| | | | | | | | | | | | | | | | | | | | The type lists may contain CEs, we should not assume they only contain names.
* | | | Tracing JIT for SWITCH instructionsDmitry Stogov2020-07-143-33/+143
| | | |
* | | | Better support for 64-bit .aword constantsDmitry Stogov2020-07-142-12/+52
| | | |
* | | | Fix preloading property type resolutionNikita Popov2020-07-141-5/+8
| | | | | | | | | | | | | | | | This was causing many failures under --preload...
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-07-141-2/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fixed bug #79849
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-07-141-2/+3
| |\ \ \ | | | |/ | | |/| | | | | | | | | * PHP-7.3: Fixed bug #79849
| | * | Fixed bug #79849Evgeny Stepanischev2020-07-141-2/+3
| | | | | | | | | | | | | | | | Closes GH-5853.
* | | | Fixed bug #79852Nikita Popov2020-07-141-0/+36
| | | |
* | | | Use different scratch registerNikita Popov2020-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | r1 clashes with FCARG1a on Windows, so use a different scratch register. FCARG2a should be free here. Hopefully fixes the AppVeyor build.
* | | | Support socketpairs in proc_open()Martin Schröder2020-07-146-25/+265
| | | | | | | | | | | | | | | | Closes GH-5777.
* | | | Remove out-dated commentChristoph M. Becker2020-07-131-1/+0
| | | | | | | | | | | | | | | | ZTS support has been added around ~7.2.
* | | | Fix typosChristoph M. Becker2020-07-131-2/+2
| | | |
* | | | Put debug function behind ifdefNikita Popov2020-07-131-0/+2
| | | |
* | | | Restore warningNikita Popov2020-07-131-0/+1
| | | |
* | | | Improved reference-counting inferenceDmitry Stogov2020-07-131-14/+16
| | | |
* | | | Improve output of tokens in Parse ErrorsRowan Tommins2020-07-134-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, unexpected tokens in the parser are shown as the text found, plus the internal token name, including the notorious "unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)". This commit replaces that with a more user-friendly format, with two main types of token: * Tokens which always represent the same text are shown like 'unexpected token "::"' and 'expected "::"' * Tokens which have variable text are given a user-friendly name, and show like 'unexpected identifier "foo"', and 'expected identifer'. A few tokens have special cases: * unexpected token """ -> unexpected double-quote mark * unexpected quoted string "'foo'" -> unexpected single-quoted string "foo" * unexpected quoted string ""foo"" -> unexpected double-quoted string "foo" * unexpected illegal character "_" -> unexpected character 0xNN (where _ is almost certainly a control character, and NN is the hexadecimal value of the byte) The \ token has a special case in the implementation just to stop bison making a mess of escaping it and it coming out as \\
* | | | JIT for array mergingDmitry Stogov2020-07-135-0/+41
| | | |
* | | | Fix compilation errors when EXIF_DEBUG is definedNat Wyatt2020-07-131-19/+24
| | | | | | | | | | | | | | | | | | | | | | | | Fix warnings and error when compiling with EXIF_DEBUG defined. Closes GH-5838.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2020-07-131-8/+8
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | * PHP-7.4: Fix test for x86 Windows
| * | | Fix test for x86 WindowsChristoph M. Becker2020-07-131-8/+8
| |/ / | | | | | | | | | | | | `st_dev` deliberately overflows on such systems, cf. <http://svn.php.net/viewvc?view=revision&revision=350100>.
* | | Check for undef var in verify return jitNikita Popov2020-07-131-5/+11
| | |
* | | Fix PDO_Firebird numeric to string conversion on WindowsChristoph M. Becker2020-07-121-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit aaa1f90[1] dropped support for the `snprinf()` `I` modifier, so we use the standard `ll` modifier which is suitable for 32bit and 64bit Windows. We also replace the deprecated `I64` suffix[2] with the `LL` suffix. This fixes ext/pdo_firebird/tests/bug_64037.phpt. [1] <http://git.php.net/?p=php-src.git;a=commit;h=aaa1f90e3f90c24098fa55a7b868fdca0b89ee25> [2] <https://docs.microsoft.com/en-us/cpp/cpp/numeric-boolean-and-pointer-literals-cpp?view=vs-2019#integer-literals>
* | | Fix PDO_Firebird tests which assume ERRMODE_SILENTChristoph M. Becker2020-07-124-0/+4
| | | | | | | | | | | | | | | | | | These have apparently been missed when PR 5388[1] had been merged. [1] <https://github.com/php/php-src/pull/5388>
* | | Unbork tests for PDO_FirebirdChristoph M. Becker2020-07-122-2/+2
| | | | | | | | | | | | | | | PDO_Firebird raises a warning regarding the unknown SQL syntax, which we have to silence to avoid run-tests.php to mark the test as borked.
* | | Fix free of uninitialized memory in MATCH_ERRORIlija Tovilo2020-07-121-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | As suggested by Tyson Andre: https://github.com/php/php-src/pull/5371#issuecomment-657081464 Also fix line number of unhandled match error Closes GH-5841.
* | | debug_zval_dump(): Don't skip recursion detection on first leveltwosee2020-07-121-9/+5
| | | | | | | | | | | | | | | | | | A complement to ae6f45ad45e072260d93f828d81fee9548123044 Closes GH-5843.
* | | Removed the "oci_internal_debug" function and its alias. Also deprecated the ↵Jens de Nies2020-07-118-1009/+3
| | | | | | | | | | | | | | | | | | "ocifetchinto" function. Closes GH-5810
* | | (ffi) fix ifdefs for non-windows systems without long doubleChuck Adams2020-07-111-2/+2
| | | | | | | | | | | | Closes GH-5840
* | | Export php_gd_libgdimageptr_from_zval_p()Christoph M. Becker2020-07-113-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some extension may need to retrieve the `gdImagePtr` from an `GdImage` object; thus, we export the respective function. To not being forced to include gd.h in php_gd.h, we use the opaque `struct gdImageStruct *` as return type. We also rename php_gd2.dll to php_gd.dll, since there's not really much point in giving the DLL a version number, since there is no php_gd.dll for years (if there ever has been). Renaming, on the other hand, matches the name on other systems (gd.so), and allows to actually use `ADD_EXTENSION_DEP()`.
* | | Merge branch 'PHP-7.4'twosee2020-07-111-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed BC break of php_debug_zval_dump
| * | Merge branch 'PHP-7.3' into PHP-7.4twosee2020-07-111-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fixed BC break of php_debug_zval_dump
| | * Fixed BC break of php_debug_zval_dumptwosee2020-07-111-1/+1
| | | | | | | | | | | | It introduced by fixing bug #79830
* | | Merge branch 'PHP-7.4'twosee2020-07-112-18/+26
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * PHP-7.4: Fixed bug #79830 introduced by fixing bug #79821 # Conflicts: # ext/standard/var.c
| * | Merge branch 'PHP-7.3' into PHP-7.4twosee2020-07-112-25/+37
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fixed bug #79830 introduced by fixing bug #79821
| | * Fixed bug #79830 introduced by fixing bug #79821twosee2020-07-112-25/+37
| | | | | | | | | | | | This also fixes memory error in debug_zval_dump and var_export.
* | | Merge branch 'PHP-7.4'twosee2020-07-112-0/+24
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #79821
| * | Merge branch 'PHP-7.3' into PHP-7.4twosee2020-07-112-0/+24
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fixed bug #79821
| | * Fixed bug #79821twosee2020-07-112-0/+24
| | | | | | | | | | | | | | | | | | HashTable was reallocated (zend_hash_packed_grow) during php_var_dump, so we should call GC_ADDREF to make SEPARATE_ARRAY work. Closes GH-5837.
* | | Don't generate JSON scanner and parser during configurecodinghuang2020-07-101-9/+0
| | |