cvs: pecl /mdbtools mdbtools.xml
| From: | Hartmut Holzgraefe | Date: | Mon, 20 Feb 2006 17:38:20 +0000 |
| Subject: | cvs: pecl /mdbtools mdbtools.xml | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5216@lists.php.net to get a copy of this message | ||
hholzgra Mon Feb 20 17:38:20 2006 UTC
Modified files:
/pecl/mdbtools mdbtools.xml
Log:
updated specification file
http://cvs.php.net/viewcvs.cgi/pecl/mdbtools/mdbtools.xml?r1=1.3&r2=1.4&diff_format=u
Index: pecl/mdbtools/mdbtools.xml
diff -u pecl/mdbtools/mdbtools.xml:1.3 pecl/mdbtools/mdbtools.xml:1.4
--- pecl/mdbtools/mdbtools.xml:1.3 Thu Nov 11 16:37:57 2004
+++ pecl/mdbtools/mdbtools.xml Mon Feb 20 17:38:20 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE extension SYSTEM "extension.dtd">
-<extension name="mdbtools">
+<extension name="mdbtools" version="1.0.0">
<!--
for now there is no way to extend the generated config.m4
file with additional custom tests so you need to set theese
@@ -44,7 +44,7 @@
</notes>
</release>
- <deps language="c" platform="unix">
+ <deps language="c" platform="all">
<with defaults='/usr:/usr/local' testfile='include/mdbtools.h'>mdbtools
installation prefix</with>
<lib name="mdb" function="mdb_init"/>
<header name="mdbtools.h"/>
@@ -108,6 +108,7 @@
MdbTableDef *table;
int num_cols;
char **bound_values;
+ char **bound_lengths;
char **column_names;
} my_MdbTableDef;
@@ -161,6 +162,14 @@
if (!return_res) RETURN_FALSE;
</code>
+ <test>
+ <code>
+echo "hallo";
+ </code>
+ <result>
+hallo
+ </result>
+ </test>
</function>
<function name="mdb_close">
@@ -192,7 +201,9 @@
]]>
</description>
<code>
+<![CDATA[
RETURN_LONG(res_db->f->jet_version);
+]]>
</code>
</function>
@@ -259,8 +270,9 @@
mdb_read_indices(return_res->table);
mdb_rewind_table(return_res->table);
- return_res->column_names = ecalloc(return_res->num_cols, sizeof(char *));
- return_res->bound_values = ecalloc(return_res->num_cols, sizeof(char *));
+ return_res->column_names = ecalloc(return_res->num_cols, sizeof(char *));
+ return_res->bound_values = ecalloc(return_res->num_cols, sizeof(char *));
+ return_res->bound_lengths = ecalloc(return_res->num_cols, sizeof(int));
for (j=0; j<return_res->num_cols; j++) {
col=g_ptr_array_index(return_res->table->columns, j);
@@ -269,7 +281,7 @@
return_res->bound_values[j] = emalloc(MDB_BIND_SIZE);
return_res->bound_values[j][0] = '\0';
- mdb_bind_column(return_res->table, j+1, return_res->bound_values[j]);
+ mdb_bind_column(return_res->table, j+1, return_res->bound_values[j],
return_res->bound_lengths+j);
}
}
}
@@ -305,7 +317,7 @@
array_init(return_value);
for (i = 0; i < res_table->num_cols; i++) {
- add_next_index_string(return_value, res_table->bound_values[i], 1);
+ add_next_index_stringl(return_value, res_table->bound_values[i],
res_table->bound_lengths[i], 1);
}
]]>
</code>
@@ -338,7 +350,7 @@
array_init(return_value);
for (i = 0; i < res_table->num_cols; i++) {
- add_assoc_string(return_value, res_table->column_names[i],
res_table->bound_values[i], 1);
+ add_assoc_stringl(return_value, res_table->column_names[i],
res_table->bound_values[i], res_table->bound_lengths[i], 1);
}
]]>
@@ -544,4 +556,14 @@
</code>
</function>
-</extension>
\ No newline at end of file
+ <test name="foo">
+ <title>foobar</title>
+ <code>
+echo "hallo";
+ </code>
+ <result>
+hallo
+ </result>
+ </test>
+
+</extension>