mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build.
PR: ports/112858 Submitted by: Simun Mikecin <numisemis@yahoo.com>
This commit is contained in:
parent
709f1961ae
commit
904b29ce7f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191941
1 changed files with 20 additions and 0 deletions
20
databases/php5-oci8/files/patch-oci8_lob.c
Normal file
20
databases/php5-oci8/files/patch-oci8_lob.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- oci8_lob.c.orig Sat May 26 09:41:51 2007
|
||||||
|
+++ oci8_lob.c Sat May 26 09:45:36 2007
|
||||||
|
@@ -301,6 +301,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_clob) {
|
||||||
|
+#ifdef OCI_NLS_CHARSET_MAXBYTESZ
|
||||||
|
PHP_OCI_CALL_RETURN(connection->errcode, OCINlsNumericInfoGet, (connection->env, connection->err, &bytes_per_char, OCI_NLS_CHARSET_MAXBYTESZ));
|
||||||
|
|
||||||
|
if (connection->errcode != OCI_SUCCESS) {
|
||||||
|
@@ -308,6 +309,9 @@
|
||||||
|
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
+#else
|
||||||
|
+ bytes_per_char = 4;
|
||||||
|
+#endif
|
||||||
|
} else {
|
||||||
|
/* BLOBs don't have encoding, so bytes_per_char == 1 */
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue