cvs: /php4/ext/oci8 oci8.c
| From: | Thies C. Arntzen | Date: | Fri, 21 Apr 2000 09:54:45 +0000 |
| Subject: | cvs: /php4/ext/oci8 oci8.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13872@lists.php.net to get a copy of this message | ||
thies Fri Apr 21 02:54:45 2000 EDT
Modified files:
/php4/ext/oci8 oci8.c
Log:
@- OCIBindByName() will no longer complain about bindlength beeing zero. (Thies)
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.69 php4/ext/oci8/oci8.c:1.70
--- php4/ext/oci8/oci8.c:1.69 Thu Apr 6 14:07:40 2000
+++ php4/ext/oci8/oci8.c Fri Apr 21 02:54:15 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.69 2000/04/06 21:07:40 cmv Exp $ */
+/* $Id: oci8.c,v 1.70 2000/04/21 09:54:15 thies Exp $ */
/* TODO list:
*
@@ -2482,10 +2482,10 @@
if ((ocitype == SQLT_CHR) && (value_sz == -1)) {
convert_to_string_ex(var);
value_sz = (*var)->value.str.len;
- if (value_sz == 0) {
- php_error(E_WARNING, "bindlength == 0"); /* XXX shitty message */
- RETURN_FALSE;
- }
+ }
+
+ if (value_sz == 0) {
+ value_sz = 1;
}
convert_to_string_ex(name);