Commit Graph

652 Commits

Author SHA1 Message Date
Antony Dovgal
0d77b46f36 fix test 2007-05-07 08:25:21 +00:00
Antony Dovgal
9d5afbdfc4 fix spelling 2007-05-04 11:30:27 +00:00
Antony Dovgal
f330a25c9b fix "checking checking" noticed by Mikko 2007-05-04 09:05:15 +00:00
Antony Dovgal
9d57173cdf fix #10194 (crash in Oracle client when memory limit reached in the callback)
preallocate the required buffer, so that it would fail earlier.
2007-03-29 09:30:25 +00:00
Antony Dovgal
ee1a525351 Oracle seems to return non zero terminated strings or strings with only 1 zero at the end in Unicode mode
surely u_strlen() doesn't like it, so lets use OCIStringSize() and avoid u_strlen()
2007-03-28 23:05:36 +00:00
Antony Dovgal
7f4d7749e1 mask resource numbers 2007-03-02 09:12:13 +00:00
Antony Dovgal
42645d14a9 new tests by Chris and me 2007-03-01 23:28:51 +00:00
Antony Dovgal
aadee72682 MFB: allocate and define descriptors dynamically 2007-03-01 23:28:13 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Antony Dovgal
94ab958454 output debug messages before calling OCI functions 2007-02-13 20:19:50 +00:00
Antony Dovgal
5ea43ad90c typofixes and other improvements by Chris Jones 2007-02-12 09:36:11 +00:00
Antony Dovgal
3c10602950 fix compile failure in ZTS mode when collections support is missing 2007-01-31 12:45:56 +00:00
Antony Dovgal
74e11c349c fix segfault on re-binding and re-executing a statement
improve the test
patch by Chris Jones
2007-01-31 10:36:20 +00:00
Antony Dovgal
fdec496b73 improve test
patch by Chris Jones
2007-01-30 11:43:07 +00:00
Antony Dovgal
47514fd793 fix test
different Oracle client versions report different error messages
2007-01-29 16:18:15 +00:00
Antony Dovgal
a4c6b4b0f3 fix test 2007-01-29 16:16:07 +00:00
Antony Dovgal
e4cd5235fd fix test 2007-01-19 19:43:25 +00:00
Antony Dovgal
1494f6f9df fix #39988 (type argument of oci_define_by_name() is ignored)
patch and tests by Chris Jones
2007-01-11 11:58:34 +00:00
Antony Dovgal
4a7093c531 fix #40078 (ORA-01405 when fetching NULL values using oci_bind_array_by_name()) 2007-01-11 11:26:36 +00:00
Antony Dovgal
a323972c87 use constant 2007-01-03 20:45:17 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
7b42968afd that should not be there.. 2006-12-27 09:49:06 +00:00
Antony Dovgal
06216846e7 more test improvements by Chris Jones 2006-12-27 09:48:05 +00:00
Antony Dovgal
f3c0c42b76 use safe_emalloc() 2006-12-25 21:45:09 +00:00
Antony Dovgal
fa3c084b36 mark all LOB functions as Unicode safe 2006-12-25 18:57:15 +00:00
Antony Dovgal
083bddc23d fix test 2006-12-23 14:14:14 +00:00
Antony Dovgal
8a3000977c fix tests 2006-12-23 14:10:52 +00:00
Antony Dovgal
96d19377ce use add_ascii_assoc_text() 2006-12-23 14:10:35 +00:00
Antony Dovgal
19060d3a14 use OCI_SUCCESS constant, do not rely on its value 2006-12-23 14:02:38 +00:00
Antony Dovgal
2010ae0c5c more OCI8 tests by Chris Jones 2006-12-22 13:28:46 +00:00
Antony Dovgal
921d845f8d temporary fix for oci_error(), just to make it work
it should be using add_ascii_assoc_text() instead
2006-12-21 22:50:57 +00:00
Antony Dovgal
b87049fd42 added support for CALL statement type (patch by Chris Jones) 2006-12-21 22:08:02 +00:00
Antony Dovgal
6292c75198 improve tests, add new ones 2006-12-21 19:22:49 +00:00
Antony Dovgal
955e71c985 new tests by Christopher Jones 2006-12-21 12:41:03 +00:00
Antony Dovgal
8eb42705d7 disable tests
I don't think it makes sense to test a segfault which we cannot fix..
2006-12-12 13:22:33 +00:00
Antony Dovgal
c3fb5e8045 fix test 2006-12-12 13:12:22 +00:00
Antony Dovgal
fc79cb0974 BFILE tests are only valid when Oracle is installed on the same host
skip them if it's not
2006-12-12 12:57:02 +00:00
Antony Dovgal
70638c5cdf fix test 2006-12-12 10:31:36 +00:00
Antony Dovgal
da56bcc2b1 fix LOBs internal position in Unicode mode 2006-12-12 10:31:22 +00:00
Antony Dovgal
0e3b847fe2 add new tests 2006-12-12 09:33:17 +00:00
Antony Dovgal
5f1b060f73 OCILobGetChunkSize() does not like BFILEs, return read_length right away 2006-12-12 09:28:07 +00:00
Antony Dovgal
fb522f16ee prevent any possible problems with negative values 2006-12-11 12:33:55 +00:00
Antony Dovgal
75fa1df0e7 add new test 2006-12-11 12:31:54 +00:00
Antony Dovgal
a14c81e3c2 fix #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit) 2006-12-08 20:55:14 +00:00
Antony Dovgal
e56bd8eed2 add Unicode support to oci_statement_type() 2006-12-06 16:42:27 +00:00
Antony Dovgal
826f06ea88 mark most of the OCI8 functions as unicode aware 2006-12-06 16:36:27 +00:00
Antony Dovgal
577d3dec4c fix error messages in Unicode mode when global error handle is used 2006-11-23 16:08:41 +00:00
Antony Dovgal
afd25b61a4 fix oci_bind_array_by_name() with SQLT_ODT type
fix tests
2006-11-23 15:23:10 +00:00
Antony Dovgal
88f51bc2e5 fix tests 2006-11-23 14:36:55 +00:00
Antony Dovgal
f63754eb19 fix oci_bind_array_by_name() in Unicode mode 2006-11-23 14:20:59 +00:00
Antony Dovgal
b616c7ffee fix type mess (thanks again, Chris) 2006-11-10 23:03:23 +00:00
Antony Dovgal
86a8604a81 fix build with old client versions 2006-11-10 21:57:04 +00:00
Antony Dovgal
869aa78e1e MFB 2006-11-10 21:55:05 +00:00
Antony Dovgal
d99f05f1a2 add _not yet 100% complete_ Unicode support
collections, statements and BLOBs seem to be working ok
though there are still some things to be done in order to make oci_bind_array_by_name() work with U-strings

Notes:
- in Unicode mode OCI8 always speaks to Oracle server using UTF-16, so all the conversions are done by the client lib.
This is why character set parameter of oci_connect() and NLS_LANG are ignored in U-mode.

- BLOBs and CLOBs behave quite differently in U-mode.
Reading data from a CLOB would result in Unicode string, while BLOBs would return binary string.
Also, all LOB utilities work with _bytes_ when BLOB is used and _characters_ when it's CLOB.
It's not that obvious, but it does make a lot of sense to me.
2006-11-10 16:56:19 +00:00
Antony Dovgal
974b0ad2cd fix segfault in ZTS mode when statements containing sub-statements are destroyed in wrong order 2006-11-10 16:33:28 +00:00
Antony Dovgal
4579e4cc9e fix PECL bug #9061 (oci8 might reuse wrong persistent connection) 2006-10-18 14:22:04 +00:00
Antony Dovgal
03301dee3f fix win32 build 2006-10-13 14:26:14 +00:00
Antony Dovgal
77c5edbb3e use connection character set when reading LOB data 2006-10-12 10:02:34 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Antony Dovgal
d3bae72721 fix PECL bug #8816 (issue in php_oci_statement_fetch with more than one piecewise column)
patch by jeff at badtz-maru dot com
2006-10-06 12:46:08 +00:00
Antony Dovgal
0de658d31d new test 2006-10-06 09:57:29 +00:00
Antony Dovgal
4b0da1f741 fix test
the error message is different in Oracle10
2006-09-27 08:44:12 +00:00
Antony Dovgal
22491f9399 change test to work with Oracle 10 2006-09-13 10:44:04 +00:00
Antony Dovgal
ad67978a49 new tests 2006-09-12 20:32:06 +00:00
Antony Dovgal
40fe5baf8c uhm.. declare oci_lob_seek() along with OCI-Lob->seek() method 2006-09-12 20:26:59 +00:00
Antony Dovgal
0a5cb31537 fix leak when binding a variable to the same placeholder several times 2006-09-12 11:42:25 +00:00
Antony Dovgal
a10691e3b9 last portion of z/Z fixes 2006-08-31 16:14:43 +00:00
Antony Dovgal
4c7154981b update version in phpinfo() 2006-08-24 13:02:53 +00:00
Antony Dovgal
2ccf86ae4c bump version number 2006-08-24 12:46:52 +00:00
Antony Dovgal
c3ff8f269f prepare to 1.2.2 release 2006-08-24 11:53:37 +00:00
Antony Dovgal
bfccf875f1 minor improvements
dropped unused parameters, changed long to int where it should be int
2006-08-22 11:08:28 +00:00
Antony Dovgal
f069754ab8 fix PECL bug #8112 (OCI8 persistent connections misbehave when Apache process times out) 2006-08-21 16:40:46 +00:00
Antony Dovgal
1789473eba minor CS/WS fixes 2006-08-15 13:08:18 +00:00
Antony Dovgal
43aab65e86 error message might be NULL 2006-08-15 12:27:04 +00:00
Antony Dovgal
7f2e2b105a OCIBreak() is not supported on Windows 2006-08-15 12:19:39 +00:00
Antony Dovgal
d04a797cc6 add test 2006-08-10 12:20:28 +00:00
Antony Dovgal
4e792c3ead improve connection character set detection:
* output a warning if invalid character set was passed to the function
* use NLS_LANG by default
2006-08-10 12:15:24 +00:00
Antony Dovgal
3f0e0d1263 update 2006-08-09 15:27:26 +00:00
Antony Dovgal
e16bd0c0f0 add support for NCLOBs
fix #35973 (Error ORA-24806 occurs when trying to fetch a NCLOB field)
2006-08-09 15:23:50 +00:00
Antony Dovgal
14bab82ab3 update changelog and file list 2006-08-09 12:20:45 +00:00
Antony Dovgal
225fb6a51a fix #38161 (oci_bind_by_name() returns garbage when Oracle didn't set the variable) 2006-08-09 12:13:30 +00:00
Antony Dovgal
783bcdde3e oops, wrong directory 2006-08-09 12:12:10 +00:00
Antony Dovgal
f9fd102d73 fix leak on failure 2006-08-09 11:48:50 +00:00
Antony Dovgal
689f3a92b5 fix #8112 (Persistent connections misbehave when Apache process times out) 2006-08-09 10:16:20 +00:00
Antony Dovgal
3e0a13fa9f long -> int 2006-08-06 14:09:46 +00:00
Antony Dovgal
688975a519 fix PECL bug #7827
add small optimization - no need to do anything if hash lookup failed, just move along
2006-08-05 20:56:12 +00:00
Antony Dovgal
0c2449923c improve error message on Win32 2006-08-01 12:08:10 +00:00
Antony Dovgal
06aa83600e fix #37581 (oci_bind_array_by_name clobbers input array when using SQLT_AFC, AVC) 2006-07-31 10:28:46 +00:00
Antony Dovgal
996f79343c update changelog 2006-07-30 20:53:10 +00:00
Antony Dovgal
5cf81310c7 fix #38173 (Freeing nested cursors causes OCI8 to segfault) 2006-07-30 20:50:53 +00:00
Antony Dovgal
b14af30ed0 improve connection timeout check (implements FR #38210) 2006-07-26 07:00:42 +00:00
Antony Dovgal
93ae33c8a4 add Unicode EXPECT tags 2006-07-10 20:48:04 +00:00
Antony Dovgal
dc9ea3b961 add missing items to the changelog 2006-07-07 09:21:54 +00:00
Antony Dovgal
a6b1620267 update changelog 2006-06-28 15:05:17 +00:00
Antony Dovgal
310903208a fix #37931 (possible crash after database restart when using persistent connections) 2006-06-28 15:03:16 +00:00
Antony Dovgal
d9de0eac85 fix typo and bug #37886 2006-06-23 08:25:58 +00:00
Antony Dovgal
fbbfdafe0a add 4.3.10 dependency to package.xml
add check for PHP version in ./configure
2006-06-22 20:28:51 +00:00
Antony Dovgal
9af1ea3883 fix compile failure with <s>ancient</s> older PHP versions caused by new globals management code 2006-06-21 10:51:55 +00:00
Antony Dovgal
3210771d31 display oci8 version in phpinfo() 2006-06-19 18:21:19 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Antony Dovgal
4d7663363b happy birthday commit, yay =)
this patch should fix Unicode LOB problems using callbacks to read LOBs
the patch also includes an optimization: using chunk_size*X buffer should speed up LOB reading a bit

many thanks to Massimo Squillace <msquillace at sogei dot it> for the patch.
2006-06-07 13:36:19 +00:00
Antony Dovgal
d72a51c83a add new changelog entries 2006-06-05 10:02:45 +00:00
Antony Dovgal
0ab0cf61db fix OCIPasswordChange() parameters (patch by pholdaway at technocom-wireless dot com)
prevent username. password and new password from being empty
2006-06-05 07:34:00 +00:00
Antony Dovgal
86f475fd40 MFB: fix tests 2006-05-30 22:37:08 +00:00
Antony Dovgal
006cbdadab fix test 2006-05-30 21:54:17 +00:00
Antony Dovgal
b64bf12d59 fix compilation on some b0rked systems that must have collections support but they don't 2006-05-30 21:38:00 +00:00
Antony Dovgal
0d0cc38d4c don't require libociei, this allows us to build ext/oci8 against basiclite OIC package 2006-05-30 13:16:38 +00:00
Antony Dovgal
d0dba64b72 improve sed expressions 2006-05-29 18:12:39 +00:00
Antony Dovgal
c051139ad5 fix #37531 (oci8 persistent connection corruption) 2006-05-29 10:59:15 +00:00
Antony Dovgal
1304bd655b re-enable OCILobRead2() support on win32 2006-05-22 04:17:24 +00:00
Antony Dovgal
469040660e attempt to fix OCILobRead2() related problems 2006-05-20 13:46:41 +00:00
Antony Dovgal
10c2fc97df fix #37487 (oci_fetch_array() array-type should always default to OCI_BOTH) 2006-05-18 13:20:00 +00:00
Antony Dovgal
5ce0aa49b8 disable OCILobRead2() support on Win32 2006-05-15 08:34:02 +00:00
Antony Dovgal
6fc10a0acd fix #37392 (Unnecessary call to OCITransRollback() at the end of request) 2006-05-10 10:06:57 +00:00
Antony Dovgal
ea759395f8 prepare to 1.2.1 release 2006-05-02 10:18:58 +00:00
Antony Dovgal
000cf5ca7f MF51: fix #37059 (oci_bind_by_name() doesn't support RAW and LONG RAW fields)
add tests
2006-04-12 19:22:12 +00:00
Antony Dovgal
a892880c1c MF51: correct fix for bug #37055 2006-04-12 17:59:57 +00:00
Antony Dovgal
33a2dc7495 MF51: fix #37055 (incorrect reference counting for persistent OCI8 connections) 2006-04-12 13:38:05 +00:00
Antony Dovgal
e931d970ab add new tests 2006-04-05 14:09:31 +00:00
Antony Dovgal
cd4730e6c7 add missing defines to .w32 2006-04-05 14:07:57 +00:00
Antony Dovgal
be7135bc8e fix #36934 (OCILob->read() doesn't move internal pointer when reading 0's)
no support for Unicode CLOBs in Oracle < 10, sorry.
2006-04-05 14:07:16 +00:00
Antony Dovgal
8629171612 fix tests 2006-03-28 09:13:35 +00:00
Antony Dovgal
c5f35d7d95 MF51: fix #36851 (Documentation and code discrepancies for NULL data) 2006-03-28 09:13:22 +00:00
Antony Dovgal
49b16f7254 MF51: fix #36820 (Privileged connection with an Oracle password file fails) 2006-03-22 09:46:13 +00:00
Antony Dovgal
dce1fffbc8 change oci_field_type() to return VARCHAR2 instead of VARCHAR
(fixes feature request #36800)
2006-03-21 15:47:38 +00:00
Antony Dovgal
0ba446fa06 reimplement php_oci_lob_read() and fix PECL bug #5995
now the function dosn't try to read data by blocks, as this is nearly impossible
to do with Unicode and regular LOBs in the same time
2006-03-21 15:07:14 +00:00
Antony Dovgal
612fbc1b6b MFB: Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug #36764) 2006-03-18 22:06:45 +00:00
Antony Dovgal
37ab9aa474 prepare to the 1.2 release 2006-03-16 07:31:01 +00:00
Antony Dovgal
d88e3ee93d prepare to the next release 2006-03-07 10:22:54 +00:00
Antony Dovgal
af792fbcc2 add workaround for Oracle server crash, use OCIServerVersion() instead of OCIPing()
fix #36250 (PHP Causes ORA-07445 Core dump in Oracle server 9.2.x)
2006-03-07 07:45:59 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
Andi Gutmans
e94e25e621 Start nuking safe_mode. Still a lot of work to do... 2006-02-19 00:55:22 +00:00
Antony Dovgal
cc318c4f4f fix #36403 (oci_execute() no longer supports OCI_DESCRIBE_ONLY) 2006-02-15 20:43:37 +00:00
Antony Dovgal
087ee7d567 don't use deprecated call-time by reference 2006-02-07 14:11:01 +00:00
Antony Dovgal
760d8cda46 MF51: fix #36010 (Segfault when re-creating and re-executing statements with bound parameters) 2006-02-03 14:48:24 +00:00
Antony Dovgal
048c5843f4 merge from 5.1 forgotten patch 2006-01-31 18:41:38 +00:00
Antony Dovgal
617242e6fa fix test 2006-01-31 18:39:50 +00:00
Antony Dovgal
2697320c20 fix #36235 (ocicolumnname delivers empty results before a succesfull ocifetch) 2006-01-31 18:36:59 +00:00
Antony Dovgal
9a69aa32e9 fix typo 2006-01-20 16:58:33 +00:00
Antony Dovgal
f32c1b7c2b add new test 2006-01-20 11:07:51 +00:00
Antony Dovgal
f14d1152fe fix #36096 (oci_result() returns garbage after oci_fetch() failed) 2006-01-20 11:01:36 +00:00
Antony Dovgal
9e03537d90 reorganize resource destruction.
- use one helper function for all resource types
- destroy all resources when connections are still available
2006-01-18 10:11:12 +00:00
Antony Dovgal
38beafe629 fix #36055 (possible OCI8 crash in multithreaded environment) 2006-01-17 23:44:11 +00:00
Antony Dovgal
e99778562d add test for bug #36010 2006-01-14 22:22:48 +00:00
Antony Dovgal
c9d6bb5b9f silence compile warning in non-ZTS mode 2006-01-10 08:32:49 +00:00
Antony Dovgal
9bd3c360ba destroy regular connections in RSHUTDOWN if ZTS is used
this fixes problem with Oracle9 (not Oracle10) and Apache2/worker - connections are not being closed correctly
see #35205 and similar issues
2006-01-10 08:29:19 +00:00
Antony Dovgal
1e3efec941 delete descriptor from the hash and avoid crashes on commit/rollback 2006-01-05 13:40:10 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Antony Dovgal
632e571642 MFB: add missing skipif conditions, fix existing ones
add one missing test
2005-12-21 11:43:24 +00:00
Antony Dovgal
3c78e5804a new test 2005-12-13 21:43:16 +00:00