cvs: php4 /ext/midgard attachment.c

From: Date: Sun, 11 Mar 2001 15:40:03 +0000
Subject: cvs: php4 /ext/midgard attachment.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4485@lists.php.net to get a copy of this message
davidg Sun Mar 11 07:40:03 2001 EDT Modified files: /php4/ext/midgard attachment.c Log: added missing conversion. Index: php4/ext/midgard/attachment.c diff -u php4/ext/midgard/attachment.c:1.8 php4/ext/midgard/attachment.c:1.9 --- php4/ext/midgard/attachment.c:1.8 Sat Mar 10 14:43:10 2001 +++ php4/ext/midgard/attachment.c Sun Mar 11 07:40:03 2001 @@ -1,4 +1,4 @@ -/* $Id: attachment.c,v 1.8 2001/03/10 22:43:10 emile Exp $ +/* $Id: attachment.c,v 1.9 2001/03/11 15:40:03 davidg Exp $ Copyright (C) 1999 Jukka Zitting <jukka.zitting@iki.fi> Copyright (C) 2000 The Midgard Project ry Copyright (C) 2000 Emile Heyns, Aurora SA <emile@iris-advies.com> @@ -37,6 +37,7 @@ { zval **table, **id; +mgd_log_debug(0, "get_blob_id"); if (self == NULL) { if (calltype) *calltype = MGD_BLOB_CALL_FUNC; if (name == NULL) return MGD_ERR_INVALID_NAME; @@ -50,6 +51,8 @@ if (!MGD_PROPFIND(self, "id", id)) { return MGD_ERR_NOT_OBJECT; } + else + convert_to_long_ex(id); if ((*table)->type != IS_STRING) { return MGD_ERR_NOT_OBJECT; @@ -60,10 +63,14 @@ convert_to_long_ex(id); return (*id)->value.lval; } +mgd_log_debug(0, "before $s", (*table)->value.str.val); if (calltype) *calltype = MGD_BLOB_CALL_OTHER; if (name == NULL) return MGD_ERR_INVALID_NAME; convert_to_string_ex(name); +mgd_log_debug(0, "before return: ptable=$q AND pid=$d AND name=$q", + (*table)->value.str.val, (*id)->value.lval, + (*name)->value.str.val); return mgd_exists_id(mgd_handle(), "blobs", "ptable=$q AND pid=$d AND name=$q", (*table)->value.str.val, (*id)->value.lval,

« previous php.cvs (#4485) next »