mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Make chr ZPP failure message consistent with ext/standard
This commit is contained in:
parent
256100a9b5
commit
714d9fc358
@ -2792,11 +2792,7 @@ PHP_FUNCTION(chr)
|
||||
{
|
||||
zend_long c;
|
||||
|
||||
if (ZEND_NUM_ARGS() != 1) {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
|
||||
ZEND_PARSE_PARAMETERS_START_EX(ZEND_PARSE_PARAMS_QUIET, 1, 1)
|
||||
ZEND_PARSE_PARAMETERS_START(1, 1)
|
||||
Z_PARAM_LONG(c)
|
||||
ZEND_PARSE_PARAMETERS_END_EX(c = 0);
|
||||
|
||||
|
@ -45,6 +45,8 @@ array(6) {
|
||||
[5]=>
|
||||
int(1000)
|
||||
}
|
||||
|
||||
Warning: chr() expects parameter 1 to be int, string given in %s on line %d
|
||||
array(8) {
|
||||
[0]=>
|
||||
int(0)
|
||||
|
Binary file not shown.
Binary file not shown.
@ -38,11 +38,6 @@ $inputs = array (
|
||||
-20.5,
|
||||
1.1234e6,
|
||||
|
||||
// array values
|
||||
/*8*/ array(),
|
||||
array(0),
|
||||
array(1, 2),
|
||||
|
||||
// boolean values
|
||||
/*11*/ true,
|
||||
false,
|
||||
@ -53,12 +48,6 @@ $inputs = array (
|
||||
/*15*/ NULL,
|
||||
null,
|
||||
|
||||
// objects
|
||||
/*17*/ new sample(),
|
||||
|
||||
// resource
|
||||
/*18*/ $file_handle,
|
||||
|
||||
// undefined variable
|
||||
/*19*/ @$undefined_var,
|
||||
|
||||
@ -95,29 +84,19 @@ string(2) "ec"
|
||||
-- Iteration 7 --
|
||||
string(2) "48"
|
||||
-- Iteration 8 --
|
||||
string(2) "00"
|
||||
string(2) "01"
|
||||
-- Iteration 9 --
|
||||
string(2) "00"
|
||||
-- Iteration 10 --
|
||||
string(2) "00"
|
||||
-- Iteration 11 --
|
||||
string(2) "01"
|
||||
-- Iteration 11 --
|
||||
string(2) "00"
|
||||
-- Iteration 12 --
|
||||
string(2) "00"
|
||||
-- Iteration 13 --
|
||||
string(2) "01"
|
||||
string(2) "00"
|
||||
-- Iteration 14 --
|
||||
string(2) "00"
|
||||
-- Iteration 15 --
|
||||
string(2) "00"
|
||||
-- Iteration 16 --
|
||||
string(2) "00"
|
||||
-- Iteration 17 --
|
||||
string(2) "00"
|
||||
-- Iteration 18 --
|
||||
string(2) "00"
|
||||
-- Iteration 19 --
|
||||
string(2) "00"
|
||||
-- Iteration 20 --
|
||||
string(2) "00"
|
||||
===DONE===
|
||||
|
Loading…
Reference in New Issue
Block a user