mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed zval copying
This commit is contained in:
parent
a58e9c4188
commit
b6d5e8d8d7
1 changed files with 3 additions and 1 deletions
|
@ -494,7 +494,9 @@ static void TIDY_CALL php_tidy_panic(ctmbstr msg)
|
|||
static int _php_tidy_set_tidy_opt(TidyDoc doc, char *optname, zval *value TSRMLS_DC)
|
||||
{
|
||||
TidyOption opt = tidyGetOptionByName(doc, optname);
|
||||
zval conv = *value;
|
||||
zval conv;
|
||||
|
||||
ZVAL_COPY_VALUE(&conv, value);
|
||||
|
||||
if (!opt) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown Tidy Configuration Option '%s'", optname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue