mirror of
https://github.com/php/php-src.git
synced 2026-04-12 18:43:37 +02:00
Fixed segfault in ext/standard/tests/strings/fprintf_variation_001.php
This commit is contained in:
@@ -540,12 +540,13 @@ php_formatted_print(int param_count, int use_array, int format_offset TSRMLS_DC)
|
|||||||
}
|
}
|
||||||
PRINTF_DEBUG(("sprintf: format character='%c'\n", format[inpos]));
|
PRINTF_DEBUG(("sprintf: format character='%c'\n", format[inpos]));
|
||||||
/* now we expect to find a type specifier */
|
/* now we expect to find a type specifier */
|
||||||
if (multiuse) {
|
//???? We don't hold zval** in args anymore
|
||||||
|
//if (multiuse) {
|
||||||
ZVAL_DUP(&tmp, &args[argnum]);
|
ZVAL_DUP(&tmp, &args[argnum]);
|
||||||
} else {
|
//} else {
|
||||||
SEPARATE_ZVAL(&args[argnum]);
|
// SEPARATE_ZVAL(&args[argnum]);
|
||||||
ZVAL_COPY_VALUE(&tmp, &args[argnum]);
|
// ZVAL_COPY_VALUE(&tmp, &args[argnum]);
|
||||||
}
|
//}
|
||||||
|
|
||||||
switch (format[inpos]) {
|
switch (format[inpos]) {
|
||||||
case 's': {
|
case 's': {
|
||||||
|
|||||||
Reference in New Issue
Block a user