diff options
author | Marcus Boerger <helly@php.net> | 2003-08-17 17:14:11 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-08-17 17:14:11 +0000 |
commit | ddf4ad5744ad82b71bb6d341735b12be7736a225 (patch) | |
tree | eaac81b87bf3ae8ad9322f1901a6b7e64d3f4800 /ext/dba | |
parent | a4bb353f2be208e5a60bbc7bf7daf86332be7707 (diff) | |
download | php-git-ddf4ad5744ad82b71bb6d341735b12be7736a225.tar.gz |
Fix warning
Diffstat (limited to 'ext/dba')
-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 ed74bbbb7e..9fc307ac86 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -663,9 +663,9 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) file_mode = "w+b"; break; default: - modenr = 0; - lock_mode = 0; - file_mode = ""; + php_error_docref2(NULL TSRMLS_CC, Z_STRVAL_PP(args[0]), Z_STRVAL_PP(args[1]), E_WARNING, "Illegal DBA mode"); + FREENOW; + RETURN_FALSE; } if (!lock_file_mode) { lock_file_mode = file_mode; @@ -694,7 +694,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) lock_mode |= LOCK_NB; /* test =: non blocking */ } } - if (*pmode || !modenr) { + if (*pmode) { php_error_docref2(NULL TSRMLS_CC, Z_STRVAL_PP(args[0]), Z_STRVAL_PP(args[1]), E_WARNING, "Illegal DBA mode"); FREENOW; RETURN_FALSE; |