cvs: php-src /ext/standard basic_functions.c

From: Date: Wed, 11 Aug 2004 03:57:16 +0000
Subject: cvs: php-src /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28270@lists.php.net to get a copy of this message
pollita Tue Aug 10 23:57:16 2004 EDT Modified files: /php-src/ext/standard basic_functions.c Log: Don't require the user to specify as a reference http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.682&r2=1.683&ty=u Index: php-src/ext/standard/basic_functions.c diff -u php-src/ext/standard/basic_functions.c:1.682 php-src/ext/standard/basic_functions.c:1.683 --- php-src/ext/standard/basic_functions.c:1.682 Sat Aug 7 11:59:59 2004 +++ php-src/ext/standard/basic_functions.c Tue Aug 10 23:57:15 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.682 2004/08/07 15:59:59 pollita Exp $ */ +/* $Id: basic_functions.c,v 1.683 2004/08/11 03:57:15 pollita Exp $ */ #include "php.h" #include "php_streams.h" @@ -485,7 +485,7 @@ PHP_FALIAS(show_source, highlight_file, NULL) PHP_FE(highlight_string, NULL) PHP_FE(php_strip_whitespace, NULL) - PHP_FE(php_check_syntax, NULL) + PHP_FE(php_check_syntax, second_arg_force_ref) PHP_FE(ini_get, NULL) PHP_FE(ini_get_all, NULL) @@ -2427,10 +2427,10 @@ PG(log_errors) = PG(display_errors) = 0; if (php_lint_script(&file_handle TSRMLS_CC) != SUCCESS) { - if (errm && PZVAL_IS_REF(errm)) { + if (errm) { char *error_str; - convert_to_string_ex(&errm); + zval_dtor(errm); spprintf(&error_str, 0, "%s in %s on line %d", PG(last_error_message), PG(last_error_file), PG(last_error_lineno)); ZVAL_STRING(errm, error_str, 0); }

« previous php.cvs (#28270) next »