summaryrefslogtreecommitdiff
path: root/ext/standard
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4'Peter Kokot2019-03-15879-1596/+1596
|\ | | | | | | | | * PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
| * Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-15896-1619/+1619
| |
* | Merge branch 'PHP-7.4'Nikita Popov2019-03-112-0/+21
|\ \ | |/
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-03-112-0/+21
| |\
| | * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-03-112-0/+21
| | |\
| | | * Fixed bug #76717Nikita Popov2019-03-112-0/+21
| | | | | | | | | | | | | | | | | | | | Print INT_MIN as -INT_MAX-1 to avoid it getting parsed as a float literal due to integer overflow.
* | | | Adjust tests for zpp TypeError changeNikita Popov2019-03-11337-5475/+944
| | | |
* | | | Make zpp failures always throw, independent of strict_typesNikita Popov2019-03-112-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously zend_parse_parameters (and FastZPP) would handle invalid arguments depending on strict_types: With strict_types=1, a TypeError is thrown, with strict_types=0 a warning is thrown and (usually) NULL is returned. Additionally, some functions (constructors always and other methods sometimes) opt-it to throwing regardless of strict_types. This commit changes zpp to always generate a TypeError exception in PHP 8.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-115-8/+8
|\ \ \ \ | |/ / /
| * | | Remove function_table var from the callerc9s2019-03-115-8/+8
| | | | | | | | | | | | | | | | | | | | function_table var is not used in call_user_function macro anymore hence replace the usage with NULL
* | | | Merge branch 'PHP-7.4'Gabriel Caruso2019-03-111-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-7.4: Use EXPECT when possible Fix tests filenames
| * | | Use EXPECT when possibleGabriel Caruso2019-03-111-1/+1
| | | | | | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | | Merge branch 'PHP-7.4'Anatol Belski2019-03-101-0/+89
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix bc break in Windows readlink
| * | | Fix bc break in Windows readlinkjohnstevenson2019-03-101-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | GetFinalPathNameByHandleW is given a file handle to a symbolic link, rather than one to the target, and therefore returns an incorrect path. Fix symlink with relative path and add test
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-0824-1283/+0
|\ \ \ \ | |/ / /
| * | | More zpp error/variation test removalsNikita Popov2019-03-0824-1283/+0
| | | |
* | | | Merge branch 'PHP-7.4'Kalle Sommer Nielsen2019-03-071-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Give Peter credit for his work on the Unix build system
| * | | Give Peter credit for his work on the Unix build systemKalle Sommer Nielsen2019-03-071-1/+1
| | | |
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-071-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Clean *nix build system
| * | | Clean *nix build systemPeter Kokot2019-03-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - remove some outdated and not used macro calls - remove some unused variables - Remove not needed comment from tokenizer config.m4 - Remove not needed comment - remove not needed local variables for editors and syntax highlighting
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-071-3/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Add AS_HELP_STRING to *nix build configure options
| * | | Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-07100-6135/+0
|\ \ \ \ | |/ / /
| * | | More zpp error/variation test removalsNikita Popov2019-03-07100-6139/+0
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-07100-4520/+0
|\ \ \ \ | |/ / /
| * | | More zpp error/variation test removalsNikita Popov2019-03-07100-4532/+0
| | | |
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-03-062-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove legacy AC_CHECK_TYPE calls for uint and ulong
| * | | Remove legacy AC_CHECK_TYPE calls for uint and ulongPeter Kokot2019-03-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AC_CHECK_TYPE was refactored in more recent versions of Autoconf and the call with two arguments is obsolete and not recommended anymore. This patch also refactors some leftovers of using ulong and uint which are not standard nor common usages of types in C. The ulong can be used as zend_ulong and uint usage is actually `unsigned int`. The usage of HAVE_ULONG removed since it is not used in current code base. Legacy edgecase for some legacy HPUX systems removed: - sys/stream.h header is not checked and the HAVE_SYS_STREAM_H is not defined with current build system. - flags are unsigned int - max_allowed_packet changed to unsigned int
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-0681-6642/+0
|\ \ \ \ | |/ / /
| * | | More zpp error/variation test removalsNikita Popov2019-03-0681-6643/+0
| | | | | | | | | | | | | | | | | | | | Some of these tests also check non-zpp conditions -- however, there is always some other test that also checks those error conditions.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-045-51/+5
|\ \ \ \ | |/ / /
| * | | Don't generate script for proc_open_pipes testsNikita Popov2019-03-045-51/+5
| | | | | | | | | | | | | | | | | | | | Commit the generated script instead, which is much simpler than the code generating it...
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-045-27/+32
|\ \ \ \ | |/ / /
| * | | Use separate directories for win32 dir testsNikita Popov2019-03-045-27/+32
| | | | | | | | | | | | | | | | Also remove one redundant piece of cleanup code.
* | | | Convert extract() prefix to string zpp argNikita Popov2019-03-012-18/+18
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-282-13/+46
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-02-282-13/+46
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-02-282-13/+46
| | |\ \ | | | |/
| | | * Fixed bug #77669Nikita Popov2019-02-282-13/+46
| | | |
| * | | Fix tests bareword fallback with error suppressionNikita Popov2019-02-254-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Re-merge commit a369326003995c137046c908e79b6ab482d34cec into PHP-7.4 (cherry picked from commit aad39879f2d2e89de105c4f87d334ee129b4321c) (cherry picked from commit 76f8a908bb18aee92b8f3d523b74b06c9d12cb6b)
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-02-251-0/+19
| |\ \ \ | | |/ /
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-253-12/+18
|\ \ \ \ | |/ / /
| * | | Fix some directory collisions in dir testsNikita Popov2019-02-253-12/+18
| | | |
* | | | Merge branch 'PHP-7.3'Xinchen Hui2019-02-251-0/+19
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | * PHP-7.3: Update NEWS Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
| * | | Merge branch 'PHP-7.2' into PHP-7.3Xinchen Hui2019-02-251-0/+19
| |\ \ \ | | | |/ | | |/| | | | | | | | | * PHP-7.2: Fixed bug #77664 (Segmentation fault when using undefined constant in custom wrapper)
| | * | Fixed bug #77664 (Segmentation fault when using undefined constant in custom ↵Xinchen Hui2019-02-251-0/+19
| | | | | | | | | | | | | | | | wrapper)
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-02-231-2/+0
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | * PHP-7.4: Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTF
| * | | Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTFPeter Kokot2019-02-231-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sprintf function has been normalized to php_sprintf via 61364b5bb172fa512c871b795c2613b1b587e4cd. This patch removes the checks to make a custom sprintf function The ZEND_BROKEN_SPRINTF has been removed and the hardcoded #define zend_sprintf sprintf is used. The php_sprintf and zend_sprintf are now symbols to sprintf. This patch now removes the custom PHP definitions of the php_sprintf and zend_sprintf functions in favor of the C99 sprintf which is also standardized in C89 already. Once, on some systems sprintf didn't behave in same way.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-223-120/+2
|\ \ \ \ | |/ / /
| * | | Stricter validation for popen mode argument on WindowsNikita Popov2019-02-223-120/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Context: The ext/standard/tests/file/popen_pclose_error-win32.phpt test often fails under parallel testing, because the "is not recognized as an internal or external command" message doesn't actually have a guaranteed position in the output. While looking into this, I noticed that this test on Windows tests something very different (invalid comand) than on Linux (invalid mode). Here I'm adjusting the Windows popen implementation so it immediately fails on a `rw` mode, just like it does on Linux.