]> granicus.if.org Git - php/commitdiff
Changed php_error to php_error_docref.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 18 Jan 2003 19:20:02 +0000 (19:20 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 18 Jan 2003 19:20:02 +0000 (19:20 +0000)
ext/yp/yp.c
ext/zip/zip.c

index 80ba55a82a786003ee2871b8b8286b2f3599741e..136ad6b98ce075421d69e42f5bb8f853f3adc25b 100644 (file)
@@ -79,7 +79,7 @@ PHP_FUNCTION(yp_get_default_domain)
        char *outdomain;
 
        if((YP(error) = yp_get_default_domain(&outdomain))) {
-               php_error(E_WARNING, yperr_string (YP(error)));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));
                RETURN_FALSE;
        }
        RETVAL_STRING(outdomain,1);
@@ -106,7 +106,7 @@ PHP_FUNCTION(yp_order)
        convert_to_string_ex(map);
 
        if((YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outval))) {
-               php_error(E_WARNING, yperr_string (YP(error)));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));
                RETURN_FALSE;
        }
 
@@ -129,7 +129,7 @@ PHP_FUNCTION(yp_master)
        convert_to_string_ex(map);
 
        if((YP(error) = yp_master(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outname))) {
-               php_error(E_WARNING, yperr_string (YP(error)));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));
                RETURN_FALSE;
        }
 
@@ -154,7 +154,7 @@ PHP_FUNCTION(yp_match)
        convert_to_string_ex(key);
 
        if((YP(error) = yp_match(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP (key), &outval, &outvallen))) {
-               php_error(E_WARNING, yperr_string (YP(error)));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));
                RETURN_FALSE;
        }
 
@@ -178,7 +178,7 @@ PHP_FUNCTION(yp_first)
        convert_to_string_ex(map);
 
        if((YP(error) = yp_first(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outkey, &outkeylen, &outval, &outvallen))) {
-               php_error(E_WARNING, yperr_string (YP(error)));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));
                RETURN_FALSE;
        }
        array_init(return_value);
@@ -207,7 +207,7 @@ PHP_FUNCTION(yp_next)
        convert_to_string_ex(key);
 
        if((YP(error) = yp_next(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), Z_STRVAL_PP (key), Z_STRLEN_PP (key), &outkey, &outkeylen, &outval, &outvallen))) {
-               php_error(E_WARNING, yperr_string (YP(error)));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (YP(error)));
                RETURN_FALSE;
        }
        
@@ -302,7 +302,7 @@ static int php_foreach_cat (int instatus, char *inkey, int inkeylen, char *inval
                TSRMLS_FETCH();
 
                YP(error) = err;
-               php_error(E_WARNING, yperr_string (err));
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", yperr_string (err));
        }
 
        return 0;
index df3622547168832df32edcfbc7e1b698ffb3e677..0ae0454ba6b64bedb298ab79c8de4f218b2cb073 100644 (file)
@@ -142,8 +142,7 @@ PHP_FUNCTION(zip_open)
 
        archive_p = zzip_opendir(filename);
        if (archive_p == NULL) {
-               php_error(E_WARNING, "%s() Cannot open zip archive %s", 
-                                 get_active_function_name(TSRMLS_C), filename);
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot open zip archive %s", filename);
                RETURN_FALSE;
        }