[php-src] PR #20639: Improve TypeError messages for non-numeric/empty strings in coercions; Closes #20632
| From: | rizwan3d | Date: | Thu, 04 Dec 2025 03:03:16 +0000 |
| Subject: | [php-src] PR #20639: Improve TypeError messages for non-numeric/empty strings in coercions; Closes #20632 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34206@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20639
Author: rizwan3d
Implements proposal from #20632
```
=====================================================================
PHP : /home/rizwan/dev/php-src/sapi/cli/php
PHP_SAPI : cli
PHP_VERSION : 8.6.0-dev
ZEND_VERSION: 4.6.0-dev
PHP_OS : Linux - Linux rizwan 6.17.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 24 Nov 2025 15:21:09
+0000 x86_64
INI actual : /home/rizwan/dev/php-src
More .INIs :
---------------------------------------------------------------------
PHP : /home/rizwan/dev/php-src/sapi/cgi/php-cgi
PHP_SAPI : cgi-fcgi
PHP_VERSION : 8.6.0-dev
ZEND_VERSION: 4.6.0-dev
PHP_OS : Linux - Linux rizwan 6.17.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 24 Nov 2025 15:21:09
+0000 x86_64
INI actual : /home/rizwan/dev/php-src
More .INIs :
---------------------------------------------------------------------
---------------------------------------------------------------------
PHP : /home/rizwan/dev/php-src/sapi/phpdbg/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 8.6.0-dev
ZEND_VERSION: 4.6.0-dev
PHP_OS : Linux - Linux rizwan 6.17.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 24 Nov 2025 15:21:09
+0000 x86_64
INI actual : /home/rizwan/dev/php-src
More .INIs :
---------------------------------------------------------------------
CWD : /home/rizwan/dev/php-src
Extra dirs :
VALGRIND : Not used
=====================================================================
Running selected tests.
PASS Error message for non-numaric strings in arithmetic contexts
[Zend/tests/non_numarix_string_operand_error.phpt]
=====================================================================
Number of tests : 1 1
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Tests passed : 1 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken : 0.026 seconds
=====================================================================
```