summaryrefslogtreecommitdiff
path: root/ext/standard/scanf.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-08-24 01:19:28 +0000
committerMarcus Boerger <helly@php.net>2002-08-24 01:19:28 +0000
commit149ad05b4f35b595f281b6be2cb3521c4726e553 (patch)
treed70d81f4e077ddd7e66b3994373d4662bcf3a3e1 /ext/standard/scanf.c
parent928c4ad41daa7023528574c343f99934ef80089a (diff)
downloadphp-git-149ad05b4f35b595f281b6be2cb3521c4726e553.tar.gz
php_error_docref
#New conversion available at: http://docref.txt.marcus-boerger.de
Diffstat (limited to 'ext/standard/scanf.c')
-rw-r--r--ext/standard/scanf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/scanf.c b/ext/standard/scanf.c
index 3f5a11bc2b..137a16ce14 100644
--- a/ext/standard/scanf.c
+++ b/ext/standard/scanf.c
@@ -408,8 +408,7 @@ PHPAPI int ValidateFormat(char *format, int numVars, int *totalSubs)
gotSequential = 1;
if (gotXpg) {
mixedXPG:
- php_error(E_WARNING,
- "cannot mix \"%\" and \"%n$\" conversion specifiers in %s", get_active_function_name(TSRMLS_C) );
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot mix \"%\" and \"%n$\" conversion specifiers");
goto error;
}
@@ -642,8 +641,7 @@ PHPAPI int php_sscanf_internal( char *string, char *format,
if (numVars) {
for (i = varStart;i < argCount;i++){
if ( ! PZVAL_IS_REF( *args[ i ] ) ) {
- php_error(E_WARNING, "Parameter %d to %s() must be passed by reference",
- i, get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Parameter %d must be passed by reference", i);
scan_set_error_return(numVars, return_value);
return SCAN_ERROR_VAR_PASSED_BYVAL;
}