cvs: php4 /ext/dbplus dbplus.c

From: Date: Fri, 07 Dec 2001 14:25:10 +0000
Subject: cvs: php4 /ext/dbplus dbplus.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8509@lists.php.net to get a copy of this message
hholzgra Fri Dec 7 09:25:10 2001 EDT Modified files: /php4/ext/dbplus dbplus.c Log: old stuff removed Index: php4/ext/dbplus/dbplus.c diff -u php4/ext/dbplus/dbplus.c:1.10 php4/ext/dbplus/dbplus.c:1.11 --- php4/ext/dbplus/dbplus.c:1.10 Thu Oct 11 19:32:41 2001 +++ php4/ext/dbplus/dbplus.c Fri Dec 7 09:25:10 2001 @@ -239,51 +239,6 @@ /* }}} */ -#if 0 -/* {{{ proto int dbplus_open(string name, int writing, int searchpath) - - */ -PHP_FUNCTION(dbplus_open) -{ - relf *conn; - - zval **name, **writing, **searchpath; - if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, &name, &writing, &searchpath) == FAILURE){ - WRONG_PARAM_COUNT; - } - - convert_to_string_ex(name); - convert_to_long_ex(writing); - convert_to_long_ex(searchpath); - - conn = cdb_open(Z_STRVAL_PP(name), Z_LVAL_PP(writing), Z_LVAL_PP(searchpath)); - if(conn == NULL) { - /* TODO error handling */ - RETURN_FALSE; - } - - ZEND_REGISTER_RESOURCE(return_value, conn, le_dbplus); -} - -/* }}} */ - -/* {{{ proto void dbplus_close(int conn) - */ -PHP_FUNCTION(dbplus_close) -{ - zval **conn; - if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &conn) == FAILURE){ - WRONG_PARAM_COUNT; - } - - convert_to_long_ex(conn); - - /* TODO resource type check */ - - zend_list_delete(Z_LVAL_PP(conn)); -} -/* }}} */ -#endif /* * Local variables:

« previous php.cvs (#8509) next »