projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f57382
)
MFH: handle unsupported datatypes and prevent segfault
author
Antony Dovgal
<tony2001@php.net>
Thu, 28 Apr 2005 14:13:08 +0000
(14:13 +0000)
committer
Antony Dovgal
<tony2001@php.net>
Thu, 28 Apr 2005 14:13:08 +0000
(14:13 +0000)
ext/oci8/oci8.c
patch
|
blob
|
history
diff --git
a/ext/oci8/oci8.c
b/ext/oci8/oci8.c
index e50d12b68ca69c94e32bf951dd56e54276e6cd01..a970b3b1b39c662e5c08b0a8f6764555af744d6e 100644
(file)
--- a/
ext/oci8/oci8.c
+++ b/
ext/oci8/oci8.c
@@
-2975,6
+2975,10
@@
break;
}
value_sz = sizeof(void*);
break;
+ default:
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown or unsupported datatype given: %u", ocitype);
+ RETURN_FALSE;
+ break;
}
if ((ocitype == SQLT_CHR) && (value_sz == -1)) {