diff options
| author | Marcus Boerger <helly@php.net> | 2002-11-01 14:15:24 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-11-01 14:15:24 +0000 |
| commit | a5968cf369aced3e561cf56918c9e48bdd0793ce (patch) | |
| tree | 426fd9f8bbb21080b5acc77712e9e3aeedfc2b89 /ext/dba/dba.c | |
| parent | b3b01c253d62f890757aa009f059375b84d62f45 (diff) | |
| download | php-git-a5968cf369aced3e561cf56918c9e48bdd0793ce.tar.gz | |
php_error -> php_error_docref
Diffstat (limited to 'ext/dba/dba.c')
| -rw-r--r-- | ext/dba/dba.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index 71f21ad4e7..63a32bb705 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -130,7 +130,7 @@ typedef struct dba_handler { /* check whether the user has write access */ #define DBA_WRITE_CHECK \ if(info->mode != DBA_WRITER && info->mode != DBA_TRUNC && info->mode != DBA_CREAT) { \ - php_error(E_WARNING, "%s(): you cannot perform a modification to a database without proper access", get_active_function_name(TSRMLS_C)); \ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "You cannot perform a modification to a database without proper access"); \ RETURN_FALSE; \ } @@ -313,7 +313,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) for (hptr = handler; hptr->name && strcasecmp(hptr->name, Z_STRVAL_PP(args[2])); hptr++); if (!hptr->name) { - php_error(E_WARNING, "%s(): no such handler: %s", get_active_function_name(TSRMLS_C), Z_STRVAL_PP(args[2])); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "No such handler: %s", Z_STRVAL_PP(args[2])); FREENOW; RETURN_FALSE; } @@ -332,7 +332,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) modenr = DBA_TRUNC; break; default: - php_error(E_WARNING, "%s(): illegal DBA mode: %s", get_active_function_name(TSRMLS_C), Z_STRVAL_PP(args[1])); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal DBA mode: %s", Z_STRVAL_PP(args[1])); FREENOW; RETURN_FALSE; } @@ -347,7 +347,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) if (hptr->open(info TSRMLS_CC) != SUCCESS) { dba_close(info); - php_error(E_WARNING, "%s(): driver initialization failed", get_active_function_name(TSRMLS_C)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Driver initialization failed for handler: %s", Z_STRVAL_PP(args[2])); FREENOW; RETURN_FALSE; } |
