abies Wed May 12 09:07:35 2004 EDT
Modified files:
/php-src/ext/interbase interbase.c
Log:
Made ibase_gen_id() bail out on incorrect args
http://cvs.php.net/diff.php/php-src/ext/interbase/interbase.c?r1=1.211&r2=1.212&ty=u
Index: php-src/ext/interbase/interbase.c
diff -u php-src/ext/interbase/interbase.c:1.211 php-src/ext/interbase/interbase.c:1.212
--- php-src/ext/interbase/interbase.c:1.211 Mon Apr 5 09:22:33 2004
+++ php-src/ext/interbase/interbase.c Wed May 12 09:07:35 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.211 2004/04/05 13:22:33 abies Exp $ */
+/* $Id: interbase.c,v 1.212 2004/05/12 13:07:35 abies Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -30,7 +30,7 @@
#include "php.h"
-#define FILE_REVISION "$Revision: 1.211 $"
+#define FILE_REVISION "$Revision: 1.212 $"
#if HAVE_IBASE
@@ -1210,7 +1210,10 @@
RESET_ERRMSG;
- zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr", &generator, &gen_len,
&inc, &link);
+ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr",
&generator, &gen_len,
+ &inc, &link)) {
+ RETURN_FALSE;
+ }
PHP_IBASE_LINK_TRANS(link, ib_link, trans);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php