mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Fixed bug #32719 (strval() fails to zero terminate strings)
This commit is contained in:
parent
e5697cc0ad
commit
b154e82d24
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ PHP_FUNCTION(floatval)
|
|||
Get the string value of a variable */
|
||||
PHP_FUNCTION(strval)
|
||||
{
|
||||
pval **num, *tmp;
|
||||
zval **num, *tmp;
|
||||
zval expr_copy;
|
||||
int use_copy;
|
||||
|
||||
|
@ -190,7 +190,7 @@ PHP_FUNCTION(strval)
|
|||
tmp = &expr_copy;
|
||||
RETVAL_ZVAL(tmp, 0, 0);
|
||||
} else {
|
||||
RETVAL_ZVAL(*num, 0, 0);
|
||||
RETVAL_ZVAL(*num, 1, 0);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue