]> granicus.if.org Git - php/commitdiff
remove debug output and use php_error_docref instead
authorMarcus Boerger <helly@php.net>
Thu, 7 Nov 2002 13:00:37 +0000 (13:00 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 7 Nov 2002 13:00:37 +0000 (13:00 +0000)
ext/dba/dba_gdbm.c

index 386c8f08745469240888ffce6ee061190e5d302f..18288ace27a9b9243a6513c1bb7bf472fac0644a 100644 (file)
@@ -105,7 +105,7 @@ DBA_UPDATE_FUNC(gdbm)
        if(gdbm_store(dba->dbf, gkey, gval, 
                                mode == 1 ? GDBM_INSERT : GDBM_REPLACE) == 0)
                return SUCCESS;
-       printf("XXX %s\n", gdbm_strerror(gdbm_errno));
+       php_error_docref2(NULL TSRMLS_CC, key, val, E_WARNING, "%s", gdbm_strerror(gdbm_errno));
        return FAILURE;
 }