Commit Graph

359 Commits

Author SHA1 Message Date
Dan Kalowsky
a1d8121bda Fix for bug #22897 2003-07-11 13:13:32 +00:00
Andrey Hristov
8934146246 proto fixes
#my head hurts now. no more fixes today ;)
2003-06-16 16:36:51 +00:00
Frank M. Kromann
60d161a382 Updating email address 2003-06-14 03:35:16 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
foobar
935672787a MFB 2003-05-31 02:30:50 +00:00
Ilia Alshanetsky
ded4aadde0 Fixed bug #23898 (Proper handling of NULLs in odbc_result, odbc_fetch_into
and odbc_result_all)
2003-05-30 14:44:15 +00:00
foobar
20d88e4c34 - Fixed bug #22580 (ext/odbc compile failure with dbmaker) 2003-05-02 00:40:20 +00:00
Wez Furlong
9db67f05e1 UnixODBC also supports the fetch_array() and fetch_object() functions... 2003-04-30 23:32:36 +00:00
Wez Furlong
6fc4f3a2ef Fix memory leak in odbc_fetch_(array|object).
Enable those functions for IBM DB2.
2003-04-30 10:45:45 +00:00
Stig Bakken
0e6fca4f22 * email address change 2003-03-18 12:06:09 +00:00
Ilia Alshanetsky
68e36864c9 Fixed spprintf() usage.
Fixed compiler warnings.
2003-03-12 04:46:03 +00:00
foobar
9e501d4f37 - Fixed bug #20715 (odbc could not be compiled as shared extension) 2003-03-11 03:11:36 +00:00
foobar
3c9155e0cb Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
foobar
e32eaf29de Fixed typo caught by Dave. 2003-03-07 04:32:36 +00:00
Ilia Alshanetsky
c5053e0f62 Fixed bug #22437. 2003-03-04 16:34:52 +00:00
foobar
400f466040 Cleanup 2003-02-25 11:48:50 +00:00
Wez Furlong
0a18a9d744 A add much more useful select(2) implementation than is provided by
windows sockets.  The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library.  In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default.  It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe.  This test will only work on NT, win2k and XP platforms.  Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered.  I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Dan Kalowsky
cba812ef5c MFB 2003-02-07 02:59:16 +00:00
Dan Kalowsky
b48d709746 Patch for bug #21844 2003-01-24 22:40:38 +00:00
Ilia Alshanetsky
dc150fd2ea getParameters -> zend_get_parameters_ex. 2003-01-21 15:27:39 +00:00
Ilia Alshanetsky
aebb39b014 Changed php_error to php_error_docref.
Thanks to Marcus Börger for writing a script that significantly simplifies
this process.
2003-01-18 21:31:11 +00:00
Ilia Alshanetsky
e2868b5788 Removed pointless memory allocation checks. 2003-01-18 19:41:56 +00:00
Dan Kalowsky
dacf98c86f typo corrected 2003-01-16 16:42:25 +00:00
Dan Kalowsky
ae8f64e325 Adding in test ability for WIndows to fetch_objects 2003-01-16 16:27:31 +00:00
Ilia Alshanetsky
ac3e8601ae Version is char ;). 2003-01-08 00:38:36 +00:00
Dan Kalowsky
19b25ca5d2 Version tag for future move to PECL 2003-01-07 23:00:11 +00:00
Dan Kalowsky
b89d9db706 Reverting last change as it really doesn't fix longreadlen problems in all
cases.
2003-01-07 22:56:58 +00:00
Dan Kalowsky
86b99ffcf6 Patch for bug #19349 2003-01-06 18:23:55 +00:00
Dan Kalowsky
b588e10553 Correction for bug #21279 2003-01-06 18:10:06 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
foobar
2972859dcf ws fixes 2002-11-12 17:31:39 +00:00
Dan Kalowsky
7d74a72dfd Patch for windows DSN less connection #20086 (by john@johnandlouise.com) 2002-10-31 02:57:06 +00:00
Sascha Schumann
2909e5c9c9 centralize #include "build-defs.h" and drop (sometimes inconsistent) other
instances
2002-10-24 13:15:49 +00:00
foobar
2a81281fd2 Align with other configure --help texts 2002-10-21 00:35:17 +00:00
Dan Kalowsky
161e279981 Silencing a compilier warning on windows 2002-08-14 20:40:48 +00:00
Dan Kalowsky
38a6873f20 correcting these to be only docref's not docref1's 2002-08-14 16:23:16 +00:00
Dan Kalowsky
2f1b6397bc Fix for Bug #17572 2002-08-13 23:48:05 +00:00
Dan Kalowsky
ce160f1bde fixing my misunderstanding of the php_error_docref 2002-08-13 21:39:36 +00:00
Dan Kalowsky
ea6ed5b8a5 Fixing the php_error_docref's to be compliant with the standard.
# Can't we just compress all these docrefs down to one function?!?
2002-08-13 13:26:31 +00:00
Dan Kalowsky
039902b912 spelling error 2002-08-13 04:52:50 +00:00
Dan Kalowsky
aed9e2355c Added more folding markers.... 2002-08-13 04:47:02 +00:00
Dan Kalowsky
099d7df2e5 Let to php_error_docref revolution begin 2002-08-13 00:45:08 +00:00
Dan Kalowsky
7d5d00bf81 Point corrected by Markus 2002-08-12 18:21:33 +00:00
Dan Kalowsky
8d2d105cff Umm forgot to clean up the error messages, and add a stop for looping. 2002-08-12 16:17:18 +00:00
Dan Kalowsky
ee240f5e4b cleaned up to work with OpenLink iODBC better 2002-08-12 16:04:48 +00:00
Dan Kalowsky
7b9de90061 okay confirmation they don't exist in another driver... they're gone 2002-08-12 00:00:54 +00:00
Dan Kalowsky
6b31498d09 The start of adding odbc_data_source() functionality 2002-08-11 23:39:03 +00:00
Dan Kalowsky
2832d8df94 WS 2002-07-31 13:51:20 +00:00
Dan Kalowsky
cc491407de Just adding in an error check that seems to work here well. 2002-07-31 13:50:51 +00:00
foobar
34de1f6578 Better not pollute the EXTRA_LIBS with libpaths. 2002-06-26 21:44:58 +00:00
foobar
748e75774d - Fixed bug #15803 (and propably others related too, part 2/2)
. Changed the configure/compile so that it doesn't "pollute" the INCLUDES
    anymore and thus cause trouble with other extensions which
    might use the same header files. (e.g. Informix)
  . Separated the #include statements to own file so we don't get any
    errors when compiling main/internal_functions.c
2002-06-14 00:07:16 +00:00
Dan Kalowsky
d55c9134c8 reverting the cursor change as it seems to break many ODBC drivers. 2002-04-30 13:17:48 +00:00
Dan Kalowsky
ce39ba7265 bug fix for bug #15758, a double free'ing of an ODBC connection 2002-04-26 14:56:34 +00:00
Dan Kalowsky
55e43151d5 clearing up some code to remove any possible confusion in variable counts 2002-04-24 22:07:29 +00:00
foobar
7cafcc1ef5 ws fix 2002-04-08 22:54:06 +00:00
foobar
edead0523b CPP directives must start on the beginning of line 2002-04-08 22:21:08 +00:00
jim winstead
d3400b2b5f the 'setup' script was removed more than two years ago.
these can be safely removed from the 4.2 branch, too.
2002-03-16 00:21:40 +00:00
Andi Gutmans
c8e7db984c - Allow duality between Engine 1 & 2 using ZEND_STANDARD_CLASS_DEF_PTR 2002-03-12 20:18:01 +00:00
Sascha Schumann
283b860c58 php_new_extension 2002-03-12 16:53:19 +00:00
Andreas Karajannis
bcdf9b3d4c Removed sqlrte from SAP DB liblist as it is not needed. 2002-03-12 09:54:46 +00:00
foobar
b4f73cc4f9 - Fix more possible bugs (bug #16008 related) 2002-03-12 02:27:03 +00:00
Dan Kalowsky
af4b22ceb5 Breaking BC, but making odbc_fetch_into behavior more consistent 2002-03-05 16:45:02 +00:00
Dan Kalowsky
1e0ee7b1b5 Added a comment for future reference 2002-03-05 06:15:01 +00:00
James Cox
c63843eb29 typos suck. 2002-03-04 17:09:09 +00:00
James Cox
0c78c87f34 Changing the Velocis extension to now be called Birdstep, due to a product/company change.
added aliases for Velocis to the birdstep functions.
# testing is both advised and encouraged!
@ The Velocis extension is no
2002-03-04 09:10:32 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Dan Kalowsky
a4113ee734 Bug fix 15719 as submited by Joseph Southwell and allows NULL values in ODBC
# I haven't been able to fully test this due to MacOSX compliation errors.
# if someone in the QA group could that'd be appriciated.
2002-02-26 15:33:54 +00:00
Dan Kalowsky
cd88ac738b fix for bug 15516, patch submitted by torben@php.net 2002-02-15 17:24:44 +00:00
Derick Rethans
cee660a123 - Fix for bug 15404 2002-02-06 19:10:35 +00:00
Dan Kalowsky
860e2e97ee Fix for bug #14803 2002-01-30 21:54:54 +00:00
Dan Kalowsky
31cd8e0b75 this closes off a number of ODBC bugs.
# this is a bit hack-ish in it's functionality.  The proper answer (allowing
# users to set their cursor type) has bugs with some tests cases at this time.
#  But this is being done to just get ODBC back into working order.
2002-01-21 14:11:17 +00:00
Hartmut Holzgraefe
3edcf21dda proto fix 2002-01-04 13:51:03 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Dan Kalowsky
89aa330637 Fix for bug #13628.
# basically handles a SQL_ERROR case for all odbc_execute()'s
2001-12-07 17:21:49 +00:00
Hartmut Holzgraefe
836e8af6ff proto fixes 2001-12-07 10:17:20 +00:00
Hartmut Holzgraefe
15515da8a2 protos prepared 2001-12-07 07:21:05 +00:00
foobar
f1397d5339 Unified the configure messages. 2001-11-30 19:00:13 +00:00
Stig Bakken
689252082c * zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Jeroen van Wolffelaar
c033288573 Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know. 2001-09-25 21:58:48 +00:00
Derick Rethans
78747bd2df - Don't wrap lines... this is annoying while coding. 2001-09-09 13:29:31 +00:00
Dan Kalowsky
24b54b866f Patch to stop the crashing behavior exhibited by PHP/ODBC in SOLID/DB2
submitted by Walter Franzini (walter@sys-net.it)
@Fix for LONG_VARCHAR type crashing submitted by Walter Franzini (walter@sys-net.it)
#Should this also be put into the 4.0.7 RC cycle?
2001-09-05 16:19:48 +00:00
Andi Gutmans
9a3d4e736c - More ZE2 fixes 2001-08-13 16:13:25 +00:00
Rasmus Lerdorf
4d11d90880 Track down a few more functions that don't check for 0 args and use
faster mechanism
2001-08-13 07:55:39 +00:00
Rasmus Lerdorf
8c497f05c4 We don't consistently check for args passed to functions that don't
take any args.  In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks.  There are still lots of cases out there.
2001-08-13 06:43:47 +00:00
Andi Gutmans
d80ee070f9 - Make odbc_fetch_object() work with Engine 2 2001-08-11 18:28:31 +00:00
Sascha Schumann
373b3e101e more tsrm cleanup -- output.c is not doing any fetches anymore 2001-08-05 15:55:43 +00:00
foobar
85e15deabe These are redefined in the sqltypes.h that comes with unixODBC. PR: #12519 2001-08-03 05:07:22 +00:00
Zeev Suraski
aa1772ca72 More TSRMLS_FETCH annihilation 2001-07-31 05:44:11 +00:00
Zeev Suraski
d76cf1da18 More TSRMLS_FETCH work 2001-07-31 04:53:54 +00:00
Zeev Suraski
c43806f415 Zend compatibility patch 2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95 More TSRMLS_FETCH work, and a bit of cleanup 2001-07-30 06:18:13 +00:00
Zeev Suraski
7b1c400631 More TSRMLS_FETCH annihilation (Zend compatibility patch) 2001-07-30 04:58:07 +00:00
Zeev Suraski
1c25b8dd53 Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way 2001-07-30 01:56:43 +00:00
Andi Gutmans
75ba1461dd - Object macros... 2001-07-28 19:29:16 +00:00
Zeev Suraski
d87cc976e1 Redesigned thread safety mechanism - nua nua 2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4 - Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Dan Kalowsky
eb7b11ce2e Making --with-openlink work the same as --with-iodbc for it's eventual
disappearing act.
#  As requested by the Openlink Software people
2001-07-06 14:30:34 +00:00
Dan Kalowsky
746dd9cbe4 Closed off Solid DB access to a function that it doesn't support in 3.0 and less.
Thanks to Eric Veldhuzen
2001-06-19 17:58:09 +00:00
foobar
1e0aaeffe9 Fix bug: #11508 2001-06-19 16:48:37 +00:00
Dan Kalowsky
f2ec3fa6e5 adding in some error checking for parameter counts, and some thread safety for
functions
2001-06-14 15:02:17 +00:00
Dan Kalowsky
a7e9b56112 # just correcting the evil vim removal of {{{'s and }}}'s ... bad vim! no folding for you! 2001-06-11 01:00:43 +00:00
Dan Kalowsky
eea60318d7 corrected a compile error (named variable missing). thanks to sebastian for pointing it out
# but why is he getting php-cvs commit messages and i'm not?!?
# i hope to hear that the mailing lists will be back online soon...
2001-06-10 22:40:32 +00:00
Dan Kalowsky
c3a3d5c853 added in a bit more checking on the persistent connection checks... 2001-06-08 15:31:29 +00:00
Rasmus Lerdorf
81e2cf03ac Fix folding and clean up some extensions 2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
foobar
3a1b61c07d Fix bug: #9009. 2001-06-01 06:26:22 +00:00
foobar
58d35ea778 Missing entries in phpinfo() output 2001-06-01 05:02:13 +00:00
foobar
328258ac08 Output something if password is not set. 2001-06-01 05:01:50 +00:00
Stig Bakken
1beda9ee1e * include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build) 2001-05-24 10:07:29 +00:00
Frank M. Kromann
251996bb79 Fixing prototypes to match function names 2001-05-22 18:26:36 +00:00
Sascha Schumann
afdaee9e47 Nuke more quotes 2001-05-12 11:09:05 +00:00
Sascha Schumann
718b588b14 Fix indentation of ./configure --help messages. 2001-05-12 09:13:42 +00:00
Wenhui Zhang
b6b5039f25 Change for Empress PHP support 2001-05-09 15:35:31 +00:00
Dan Kalowsky
b3a509ac9e this is a fix for bug 10250. it basically provides the unixODBC driver with
access to the SQLDriver functions.  patch originally submitted by
dzoll@nyscul.org, and is going to be tested by some of the unixODBC people.
2001-05-08 19:47:20 +00:00
Andi Gutmans
eb4d840a40 - More strncpy() -> strlcpy() changes. Am I getting bored yet? :) 2001-05-02 23:20:04 +00:00
foobar
d0dac28cc2 Fix bug #10563 2001-05-01 23:22:55 +00:00
Andi Gutmans
a5a4b4e2f8 - Use memcpy() instead of strlcpy() which is faster. 2001-04-19 21:42:45 +00:00
Dan Kalowsky
d7383e3255 appling patch for joey since he has no ODBC karma. this is for bug #10252 2001-04-19 19:55:05 +00:00
Dan Kalowsky
f41f369754 corrects bug #7488, patch supplied by submitter (torben@php.net).
quick local tests show it to work.
2001-04-19 02:31:23 +00:00
Dan Kalowsky
685186f9fd This change seems to fix bugs 7158, 7807, 8531, and 8636. After asking why this patch was applied no one seemed to respond with anything useful. If you find this change in error, sorry, I tested it on as many systems as I could. 2001-04-17 02:02:36 +00:00
Kevin
3cd2c989d3 Fixed compatibility issues in the ODBC extension for the Velocis Database server. Specifically, config.m4 was changed to use the client libraries instead of the serer libraries, and to look for the libs in the $RDSHOME/lin directory ass opposed to the $RDSHOME/bin directory. Makefile.in was changed to use the php_odbc.c file as the source for Velocis support. Other misc changes include a few #defines for some undefined data types and some #ifdefs for unsupported functions. 2001-04-10 16:26:28 +00:00
Wilfredo Sanchez
cb71c4c2d0 Separate CPPFLAGS from CFLAGS. 2001-04-03 23:30:49 +00:00
Nick Gorham
971d65059a Added small change to php_odbc module, to check for failed SQLDisconnects
and to close any outstanding transactions if the call fails, then disconnect
again. This can cause chaos with SQL Server, this regards a SELECT as
starting a transaction, and will leave it  open if the result set is not all
read.
2001-04-02 15:18:47 +00:00
foobar
8a26918ed1 Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00
Dan Kalowsky
959f40a957 The last fix was missing a &, Marc Boeren either made the patch wrong, or I applied it improperly. Anyways, Sebastian Bergmann discovered it, and supposedly is fixed with this. 2001-03-27 15:46:27 +00:00
Dan Kalowsky
0d7729ed58 Fix for Bug #9272, as submitted by marc boeren (m.boeren@guidance.nl).
Applied by me, due to apparently a lack of cvs access to ext/odbc for him.
2001-03-27 14:17:52 +00:00
Frank M. Kromann
f98710c870 Adding a new function odbc_next_result() allowing the query to return more than one result.
This can be done with a stored procedure or by sending more than one select to the server.
2001-03-09 23:44:55 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Stig Bakken
5ed1199b61 * dbmaker fix, shared support 2001-02-21 18:23:53 +00:00
Zeev Suraski
90c8e2cf75 Fix Win32 build 2001-01-15 10:22:19 +00:00
Stig Bakken
fcdf6ac680 @- Added odbc_error() and odbc_errormsg() functions (Stig) 2001-01-15 01:11:06 +00:00
Frank M. Kromann
e4d1107058 Adding hack to allow odbc_tables to work on Access databases 2001-01-05 22:01:22 +00:00
Dan Kalowsky
fbbaf5b5b5 it seems one section was missing the HAVE_SOLID_30 section... 2000-12-28 22:01:50 +00:00
Dan Kalowsky
8b2dbfca77 added #define(OPENLINK) to the SDWORD instead of SQLINTEGER line.. this is for bug #5526 to allow compiles. 2000-12-28 19:23:09 +00:00
Dan Kalowsky
68fa8f9b0b config file was missing a new line which seemed to cause the if statement to parse the else into an echo. yuck. 2000-12-28 19:12:28 +00:00
Sascha Schumann
7f96af83b2 Stop automatically passing vars to AC_SUBST through PHP_SUBST.
There are some variables which are needed for Makefiles and files
created by AC_OUTPUT; we use PHP_SUBST_OLD for those now.

genif.sh was moved to an appropiate place.
2000-12-20 17:21:37 +00:00
Stanislav Malyshev
8b1377043d No need to link main binary with ODBC libs if we use shared module 2000-12-17 11:17:50 +00:00
Stig Bakken
ac2e12a9a9 @Added ODBC_TYPE constant (Stig) 2000-12-15 00:57:04 +00:00
Stanislav Malyshev
7ff9dcacb1 Enable DB2 shared build 2000-12-07 11:13:49 +00:00
Stig Bakken
92fc209384 Applied IBM DB2 patch by Walter Franzini <walter@sys-net.it>
@ext/odbc: IBM DB2 patch by Walter Franzini <walter@sys-net.it>
2000-12-05 12:11:30 +00:00
Dan Kalowsky
bfe4e5bf37 added name for credits on work for Solid interface.. 2000-12-04 15:47:30 +00:00
Dan Kalowsky
e7aff0b676 @ Put an end to BUG#4615 (kalowsky & Eric Veldhuyzen)
This should remove the BUG#4615, thanks to Eric Veldhuyzen
(eric@terra.telemediair.nl) for the assistance on this (aka elegence vs
my hack).

This does not fix BUG#7922 though, which is currently being looked into
2000-11-22 15:31:04 +00:00
Hartmut Holzgraefe
1f6878e912 2nd step towards auto-credits 2000-11-20 10:33:33 +00:00
Dan Kalowsky
b52648efd5 Missed one section that required the addition of a new HAVE_SOLID_30
This should be correct now.
2000-11-17 15:48:09 +00:00
Dan Kalowsky
3e2ddd1edf Corrected the spelling of verion to version, and cleaned the configuration
code up a bit.  Also added in much better (read: tested) support for
Solid 3.0.   Credit for almost all of the patch goes to Eric Veldhuyzen,
minor modifications done (by me) to make it non-linux specific.

This commit also creates the HAVE_SOLID_30 define

@ Fixed/created support for Solid 3.0 databases (kalowsky)
@ Fixed support for Solid 2.3 databases (kalowsky)
2000-11-17 15:09:46 +00:00
Derick Rethans
2f5f83f518 - Added the two constants mentioned in bug #6097
# I did not test it, because I don't have access to an Adabase RDBMS
2000-10-30 18:00:58 +00:00
Andrei Zmievski
f1dcb32c9f Use zend_register_list_destructors_ex() instead. 2000-10-25 17:44:02 +00:00
Andreas Karajannis
7d3b7d7cb2 Config Patch for DBMaker 2000-10-21 11:11:11 +00:00
Andrei Zmievski
7b4983c8f8 Mega-patch to get better resource information for modules.
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
  * Switched register_list_destructors() to use
    zend_register_list_destructors_ex() instead
  * Updated all relevant modules to provide the resource type name
    to register_list_destructors() call
  * Updated var_dump() to output resource type name instead of number

@- Made resource type names visible, e.g. var_dump() and
@  get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Andreas Karajannis
e8861e6d20 Added support for SAP DB 2000-10-17 15:23:18 +00:00