summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4'Nikita Popov2020-02-031-0/+145
|\ | | | | | | | | * PHP-7.4: Add tidy.php to enforce formatting
| * Add tidy.php to enforce formattingNikita Popov2020-02-031-0/+145
| | | | | | | | | | Many parts are disabled for the PHP-7.4 branch. We only strip trailing whitespace in C files and reindent .php files to spaces.
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-02-031-2/+2
|\ \ | |/ | | | | | | * PHP-7.4: Relax test expectation
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-031-2/+2
| |\ | | | | | | | | | | | | * PHP-7.3: Relax test expectation
| | * Relax test expectationChristoph M. Becker2020-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | | Since we're dealing with floating point numbers, precision issues may hit us, and actually it's not necessary to check for the exact number anyway, because it is not exact in the first place. Therefore, we relax the test expectations.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-02-032-15/+33
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #79212: NumberFormatter::format() may detect wrong type
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-033-15/+36
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #79212: NumberFormatter::format() may detect wrong type
| | * Fix #79212: NumberFormatter::format() may detect wrong typeChristoph M. Becker2020-02-033-15/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to convert to number *before* detecting the type, to cater to internal objects implementing `cast_object`. We also get rid of the fallback behavior of using `FORMAT_TYPE_INT32`, because that can no longer happen; after `convert_scalar_to_number_ex` the type is either `IS_LONG` or `IS_DOUBLE`. We cater explicitly to the `IS_ARRAY` case what also avoids triggering a type confusion when `::TYPE_INT64` is passed as `$type`.
* | | zip ext is now 1.17.1Remi Collet2020-02-031-1/+1
| | |
* | | Export zend_type_to_string() with ZEND_APIDerick Rethans2020-02-032-2/+2
| | |
* | | Merge branch 'PHP-7.4'Remi Collet2020-02-031-0/+30
|\ \ \ | |/ / | | | | | | | | | | | | | | | * PHP-7.4: add test NEWS Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
| * | add testRemi Collet2020-02-032-0/+30
| | |
| * | NEWSRemi Collet2020-02-031-3/+5
| | |
| * | Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir MethodRemi Collet2020-02-032-3/+7
| | |
* | | Merge branch 'PHP-7.4'Remi Collet2020-02-032-3/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | * PHP-7.4: NEWS Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
| * | | NEWSRemi Collet2020-02-031-3/+5
| | | |
| * | | Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir MethodRemi Collet2020-02-032-3/+7
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-02-033-1/+3
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * PHP-7.4: Add WHITESPACE_SENSITIVE run-tests section
| * | | Add WHITESPACE_SENSITIVE run-tests sectionNikita Popov2020-02-033-1/+3
| |/ / | | | | | | | | | | | | This is used to indicate that the test should not be changed by automated formatting changes.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-02-031-1/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Disable parallelism for FPM tests
| * | Disable parallelism for FPM testsNikita Popov2020-02-031-1/+3
| | | | | | | | | | | | Let's see if this helps with spurious failures on Azure.
* | | Fix another batch of indentation in testsMáté Kocsis2020-02-0222-758/+686
| | |
* | | Clean up the generation of the parsersAkim Demaille2020-02-018-36/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer '%define api.value.type' to '#define YYSTYPE', so that Bison know the type. Use '%code requires' to declare what is needed to define the api.value.type (that code is output in the generated header before the generated definition of YYSTYPE). Prefer '%define api.prefix' inside the grammar file to '-p' outside, as anyway the functions defined in the file actually use this prefix. Prefer `%param` to both `%parse-param` and `%lex-param`. Closes GH-5138
* | | Bison: enable all the warnings and fix themAkim Demaille2020-02-013-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, fix 5547d361208d90e12d53bb62bb2ffbbff9b93ca0: the definition of YFLAGS was not passed into the Makefile: AC_SUBST does not suffice, we need PHP_SUBST_OLD. While at it, allow to pass variable and value at the same time. Then pass -Wall to bison, rather than only -Wempty-rules. Use %precedence where associativity is useless. Remove useless %precedence. GH-5138
* | | Added opcache extension to inisPieter Hordijk2020-02-012-0/+4
| | | | | | | | | | | | | | | | | | Extensions are not loaded by default (commented out) Closes GH-5136
* | | Fix var_dump testMáté Kocsis2020-01-311-7/+5
| | |
* | | Fix indentation and whitespaces in testsMáté Kocsis2020-01-3120-171/+174
| | | | | | | | | | | | In preparation for GH-5074
* | | inline by hand to avoid uninitialized variable warningSebastian Pop2020-01-311-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling with "-Wall -Werror" gcc emits two errors: ../src/pcre2_jit_neon_inc.h:211:8: error: ‘cmp1b’ is used uninitialized in this function [-Werror=uninitialized] 211 | data = fast_forward_char_pair_compare(compare1_type, data, cmp1a, cmp1b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/pcre2_jit_neon_inc.h:212:9: error: ‘cmp2b’ is used uninitialized in this function [-Werror=uninitialized] 212 | data2 = fast_forward_char_pair_compare(compare2_type, data2, cmp2a, cmp2b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The compiler emits the error message before inlining. Because the warning is based on an intra-procedural data flow analysis, the compiler does not see that cmp1b and cmp2b are not used when they are not initialized. Here is the code of that function, cmp2 is only used when ctype is compare_match2 or compare_match1i, and not when ctype is compare_match1: static inline vect_t fast_forward_char_pair_compare(compare_type ctype, vect_t dst, vect_t cmp1, vect_t cmp2) { if (ctype == compare_match2) { vect_t tmp = dst; dst = VCEQQ(dst, cmp1); tmp = VCEQQ(tmp, cmp2); dst = VORRQ(dst, tmp); return dst; } if (ctype == compare_match1i) dst = VORRQ(dst, cmp2); dst = VCEQQ(dst, cmp1); return dst; } The patch inlines by hand the case of compare_match1 such that the code avoids referring to cmp1b and cmp2b. Tested on aarch64-linux with `make check`.
* | | We don't need "safe" destruction anymoreDmitry Stogov2020-01-313-27/+5
| | |
* | | These EG(current_execute_data) = EX(prev_execute_data) assignments are ↵Dmitry Stogov2020-01-311-2/+0
| | | | | | | | | | | | useless now
* | | Export zend_dump_op() and add ZEND_DUMP_NUMERIC_OPLINES flag to print ↵Dmitry Stogov2020-01-312-20/+56
| | | | | | | | | | | | oplines as "dddd" instead of "Ld+"
* | | Fix JIT as wellNikita Popov2020-01-311-14/+8
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-315-13/+79
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix bug #76047
| * | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-01-316-13/+81
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix bug #76047
| | * Fix bug #76047Nikita Popov2020-01-315-12/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | Unlink the current stack frame before freeing CVs or extra args. This means it will no longer show up in back traces that are generated during CV destruction. We already did this prior to destructing the object/closure, presumably for the same reason.
* | | Use "%empty" in the parsers, instead of commentsAkim Demaille2020-01-318-39/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The annotation %empty is properly enforced: warnings when it's missing, and errors when it's inappropriate. Support for %empty was introduced in Bison 3.0. Pass -Wempty-rule to Bison. Closes GH-5134
* | | Zip: version is now 1.17.0Remi Collet2020-01-313-3/+5
| | | | | | | | | | | | | | | change for Windows (which have libzip 1.4 by default) update NEWS
* | | add ZipArchive::registerProgressCallback and ↵Remi Collet2020-01-317-0/+286
| | | | | | | | | | | | ZipArchive::registerCancelCallback methods
* | | Fixed JIT part for bug #79094Dmitry Stogov2020-01-311-0/+1
| | |
* | | Merge branch 'PHP-7.4'Dmitry Stogov2020-01-313-6/+39
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #79094 (Crashing when running recursion function)
| * | Fixed bug #79094 (Crashing when running recursion function)Dmitry Stogov2020-01-313-6/+39
| | |
* | | Add NEWS entry for new ReflectionProperty methods.Benjamin Eberlei2020-01-301-0/+2
| | |
* | | Promote mysqli warnings to exceptionsMáté Kocsis2020-01-30113-802/+1278
| | | | | | | | | | | | Closes GH-5058
* | | Revert "Make BG(syslog_device) per request"Nikita Popov2020-01-301-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b0d7b126a29a1972229ac91d6d28f5331912eddb. This change wasn't quite right: I noticed only now that the RSHUTDOWN function is #ifdef PHP_WIN32 and I'm not fully convinced that ifdef can be removed: syslog might also be used by error logging in FPM for example, in which case we probably shouldn't be closing the log here. Generally it's unclear how the openlog() functionality exposed by PHP is supposed to interact with openlog() uses by SAPIs. For now I'll just revert this change and let it leak across requests.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-301-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: fix cross compilation failure due to size_t typecast in define
| * | fix cross compilation failure due to size_t typecast in definePascal de Bruijn2020-01-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following commit introduces a cross-compilation failure: 93c728b77cfb47f5cfdd1863f8982ea59d344205 "Try to control ZEND_MM_ALIGNED_SIZE type" br-arm-full/build/php-7.4.2/Zend/zend_alloc.h:30:38: error: missing binary operator before token "8" ^ br-arm-full/build/php-7.4.2/ext/opcache/ZendAccelerator.c:1380:7: note: in expansion of macro ‘ZEND_MM_ALIGNMENT’ Closes GH-5128.
* | | Initialize SplFixedArray elements to NULL instead of UNDEFNikita Popov2020-01-302-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | The SplFixedArray API treats all elements as NULL, even if they have not been explicitly initialized. Rather than initializing to UNDEF an treating that specially in various circumstances, directly initialize elements to NULL. This also fixes an assertion failure in the attached test case.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-302-0/+25
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #79193
| * | Fixed bug #79193Nikita Popov2020-01-303-0/+27
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-302-1/+23
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix live range calculation for FE_FETCH