Commit Graph

14713 Commits

Author SHA1 Message Date
Antony Dovgal
acbdbe1e65 fix leak appearing when odbc_errormsg() got invalid resource 2005-01-17 15:05:11 +00:00
Stefan Esser
da7001a6c3 Fix compiler warning. 2005-01-17 11:45:09 +00:00
Edin Kadribasic
095a6f1eb3 Use PQescapeBytea() for quoting. Need to think how to add binary safe
quoting for blobls (pgsql bytea type).
Fixes #2818
2005-01-17 10:37:41 +00:00
Wez Furlong
3a751f37c6 don't raise errors for the no-error case 2005-01-17 05:28:46 +00:00
Wez Furlong
b234f1e415 tidy up a few things 2005-01-17 05:28:13 +00:00
Wez Furlong
44e77380fb Missing 1 2005-01-17 01:31:14 +00:00
Wez Furlong
ca98805935 Add a PDO driver for Sybase style DB-lib (including MS SQL).
Only the basics are here right now.
2005-01-17 01:15:14 +00:00
Zak Greant
f3d39ff406 Added standard emacs and vim modelines 2005-01-16 19:28:55 +00:00
Moriyoshi Koizumi
b1ddbcbef9 - Fix a critical bug that request-local settings leak to another request. 2005-01-16 15:55:17 +00:00
Stefan Esser
135fee7f10 and use it... 2005-01-15 18:30:16 +00:00
Stefan Esser
2c25b9d866 Restore unserialize() speed 2005-01-15 18:18:08 +00:00
foobar
58c6ed3583 CS fix 2005-01-15 04:50:26 +00:00
foobar
0e9866bfd6 ws fix 2005-01-15 04:34:30 +00:00
foobar
330746480e - Fixed bug #31060 (imageftbbox() does not use linespacing parameter) 2005-01-14 23:07:46 +00:00
foobar
68ca0ed6d8 - Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many parameters) 2005-01-14 22:43:15 +00:00
Dmitry Stogov
9de934c210 Fixed SIGSEGV in ext/standard/tests/network/tcp4loop.phpt and ext/standard/tests/network/unixloop.phpt 2005-01-14 09:02:02 +00:00
Wez Furlong
10eb5a1098 fix compile.
Someone with firebird needs to sit down and give this extension some love
2005-01-13 18:02:13 +00:00
Wez Furlong
d056f96a2f Add configure support for Oracle InstantClient SDK 2005-01-13 04:55:56 +00:00
Wez Furlong
f17311c9dd Add support for ODBCRouter 2005-01-13 02:06:39 +00:00
Wez Furlong
ef0de01b62 Take a blind stab at implementing scrollable cursors for pgsql.
We allocate a unique cursor name for each statement, so that we
don't interfere with other open statement handles on the same dbh.

Note, however, that we force a new transaction for each open scrollable cursor
(postgres requires cursors to be used inside a transaction).  This is okay,
except for the case where a scrollable cursor is opened, an update is made and
the cursor is closed; closing the cursor commits the transaction that was begun
when it was opened.

It might well be better to avoid the transaction in PDO and force the user to
be aware of the requirements of cursors and explicitly initiate the transaction
themselves.

This is all untested code; it compiles and looks like it will work, but I
encourage someone with a real postgres setup to actually sit down and try to
use it.
2005-01-13 01:59:39 +00:00
Wez Furlong
0db373883f detect funky kerberos deps that chain on from openssl deps on RH distros 2005-01-13 01:12:34 +00:00
Wez Furlong
222e5f9cbc stub out scrollable cursors here too 2005-01-12 06:12:26 +00:00
Wez Furlong
d3ab27f7cc stub out scrollable cursors 2005-01-12 06:11:33 +00:00
Wez Furlong
be616317c7 stub out scrollable cursor change 2005-01-12 06:10:31 +00:00
Wez Furlong
c77bd71315 be aware of scrollable cursors; sqlite doesn't support them 2005-01-12 06:08:59 +00:00
Wez Furlong
4d5c40cd9a touch generated file to avoid implicit yacc rule from eating it 2005-01-12 06:08:36 +00:00
Wez Furlong
81664bd2db Remove bogus scroll attribute.
Expose cursor constants to the script
2005-01-12 05:59:27 +00:00
Wez Furlong
7552fe23ff make scrollable cursors consistent with odbc; removing bogus attribute 2005-01-12 05:58:58 +00:00
Wez Furlong
b2fe675636 Support scrollable cursors 2005-01-12 05:58:19 +00:00
Wez Furlong
459b4f85d3 Add support for scrollable cursors.
Enable PDO_ATTR_PREFETCH and default it to 100Kb of prefetch buffer.
2005-01-12 05:47:03 +00:00
Wez Furlong
dd842e4bf4 API support for scrollable cursors 2005-01-12 04:49:12 +00:00
Wez Furlong
076bc75c01 add theoretical support for returning ints as ints and bools as bools.
individual drivers need to support returning data in these formats.
2005-01-12 03:26:46 +00:00
Wez Furlong
f9d3469e4f Add configure support for ODBCRouter and generic ODBC libs.
Note that ODBCRouter doesn't directly implement ODBC 3.0, so
using it here won't really work.

Expand the ODBC 3 check to better explain what happened and
how to make progress (e.g.: use an ODBC manager library like
unixODBC).
2005-01-12 02:19:30 +00:00
Moriyoshi Koizumi
20a5a1d61c - Fix the fix :) 2005-01-11 20:58:46 +00:00
Moriyoshi Koizumi
ee18958f98 - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
Wez Furlong
166ca20bed Fix build 2005-01-11 14:28:37 +00:00
Rob Richards
a3335dba69 revert fix for bug #28817 - fix is bad 2005-01-11 10:36:08 +00:00
foobar
b298098307 - Added check for IMAP 2005 version 2005-01-11 04:56:06 +00:00
Wez Furlong
c55b4ab516 update for recent adjustments 2005-01-11 02:59:52 +00:00
Antony Dovgal
6074423330 fix Konstantin's last name Chugeuv -> Chuguev 2005-01-10 21:37:17 +00:00
foobar
32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
foobar
71ea389f74 Missing $Id$ tag 2005-01-10 15:20:53 +00:00
foobar
2b407ef934 - Update credits 2005-01-10 15:11:17 +00:00
Joe Orton
9a8114e388 Don't scribble over the stack; icc compiler warning fix
from dcb314@hotmail.com via Red Hat bugzilla #143795.
2005-01-10 11:26:56 +00:00
Marcus Boerger
4a76003201 - Fix proto 2005-01-10 07:19:08 +00:00
Marcus Boerger
0f44e8a722 - Bugfix #31342: SQLite OO interface with Exceptions (hugo dot pl at gmail dot com) 2005-01-10 07:16:25 +00:00
Marcus Boerger
4494f0892b - Implement iterator interface in sqlite 2005-01-10 07:13:56 +00:00
foobar
a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
Antony Dovgal
37d3ea836e add skipif section 2005-01-09 18:22:12 +00:00
Antony Dovgal
68d73f8cf9 add test for bug #31454 2005-01-09 18:15:49 +00:00
Antony Dovgal
d7072f8a9d efree(name) 2005-01-09 17:49:51 +00:00
Antony Dovgal
c644b2a5a1 fix bug #31454 (session_set_save_handler crashes PHP when supplied non-existent object ref) 2005-01-09 17:42:02 +00:00
foobar
6ffb0dcaf2 - Fix leaks with registered shutdown functions. 2005-01-09 16:30:09 +00:00
foobar
4db9db0cc7 - Fix possible crash (PR#26223). Leaks remain. 2005-01-08 20:44:23 +00:00
Georg Richter
6b49e2d9e7 fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Marcus Boerger
5516915115 - Add new test 2005-01-08 13:47:05 +00:00
Marcus Boerger
344d2210c2 - Unify 2005-01-08 13:46:18 +00:00
Marcus Boerger
01d6db92fc - Fix shared build 2005-01-08 13:36:17 +00:00
Marcus Boerger
8045f834d4 - Remove double destroy (which is definitively wrong and prevents php from
normal execution).
2005-01-08 13:34:03 +00:00
Marcus Boerger
79687e9b7d - Fix dependency 2005-01-08 13:24:39 +00:00
Marcus Boerger
1875caf1ab - Fix warning
- Fix tsrm usage
2005-01-08 12:35:50 +00:00
foobar
9ea10c5cec - Fix some memory leaks 2005-01-08 12:02:22 +00:00
Antony Dovgal
5eeb444b8b remove duplicated include 2005-01-07 20:55:46 +00:00
Magnus M��tt�
5ec0e49497 Argh.. Committed old patch.
Add safe_mode check and fix error code.
2005-01-07 17:38:03 +00:00
Georg Richter
f16db40af2 forgot to remove some comments in last commit:( 2005-01-07 16:34:55 +00:00
Sebastian Bergmann
683515596b ZTS fix. 2005-01-07 16:24:51 +00:00
Sebastian Bergmann
aca657eca2 Sync with config.m4. 2005-01-07 16:23:13 +00:00
Magnus M��tt�
0dddd923c7 Added new function: posix_access()
Feature requests: #29615, #14924
2005-01-07 16:05:06 +00:00
Georg Richter
0b4c108bd7 Added new classes:
mysqli_driver
	mysqli_warning
	mysqli_exception
	mysqli_sql_exception

Improved embedded server support
changed testsuite to work also with embedded server

Made statement and resultset classes extendable

minor fixes
2005-01-07 14:59:59 +00:00
Wez Furlong
e6c282a766 jumbo commit; implement sqlstate error codes.
Bundle sqlite3
2005-01-07 05:27:27 +00:00
Wez Furlong
02d6b65c67 lame implementation of SQLSTATE error codes 2005-01-07 05:25:57 +00:00
Wez Furlong
70da739031 remove error map; odbc speaks SQLSTATE natively 2005-01-07 05:25:35 +00:00
Wez Furlong
fe1a87d02d half-hearted adjustment for sqlstate error codes; will do a better job
when I'm sitting down with a working oci env
2005-01-07 05:25:02 +00:00
Wez Furlong
0f12bfece7 tidy up some parts of the build (could do with more work)
Partially implement SQLSTATE error codes
2005-01-07 05:24:21 +00:00
Wez Furlong
4486666209 half-update for sqlstate error codes 2005-01-07 05:23:48 +00:00
Wez Furlong
6e0d8dd06f implement SQLSTATE style error codes.
Allow drivers to add methods to dbh and stmt objects
(note that we can't use a class, because the use only sees the PDO class).
Clarify the api slightly:
  PDO::exec() is used for one-shot queries that don't return rows
  PDO::query() is a convenience function for returning a rowset without
  having to go through the steps of preparing and executing.
2005-01-07 05:23:10 +00:00
Joe Orton
792032c6bb Fix #31413: curl POSTFIELDS usage on 64-bit platforms. 2005-01-05 21:33:56 +00:00
Frank M. Kromann
a6ce3e17e4 Allow gmp to compile under Win32 2005-01-04 22:39:29 +00:00
Wez Furlong
c4bc5b7f33 Fix #31408: memory leak in stream_socket_recvfrom 2005-01-04 15:30:45 +00:00
foobar
a2177b2e8e - Fixed bug #31396 (compile fails with gd 2.0.33 without freetype) 2005-01-04 06:51:45 +00:00
Stanislav Malyshev
9fa1ee360b merge patch from http://www.sqlite.org/cvstrac/chngview?cn=1953
bug led to PHP exiting on queries with unknown columns
2005-01-03 11:29:27 +00:00
Rob Richards
6bbb254ecc allow parser flags to be passed to xinclude() 2005-01-02 12:22:36 +00:00
Rob Richards
6a64418809 add NONET flag to disable network access when loading xml 2005-01-02 12:21:14 +00:00
Rob Richards
8450fae834 Fixed bug #31361 (simplexml/domxml segfault when adding node twice) 2005-01-02 12:08:41 +00:00
Moriyoshi Koizumi
88ce94a3c2 - Add testcases for bug #29493 and #31213. 2005-01-02 06:51:03 +00:00
Wez Furlong
126e524635 Fix build... 2005-01-01 14:32:59 +00:00
Wez Furlong
1f75a34f76 add proper dep 2004-12-31 17:45:08 +00:00
foobar
4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
foobar
5ac375a40d - Fixed bug #31101 (missing kerberos header file path with --with-openssl) 2004-12-30 14:50:06 +00:00
Antony Dovgal
8596934a39 tidy_repair_string() should not try to load config file if there was no config parameter 2004-12-30 11:56:18 +00:00
foobar
69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
foobar
57eddbd7d0 - Fixed the crash and leak. 2004-12-30 05:31:55 +00:00
Ilia Alshanetsky
a7bc501d90 MFH: A leak is better(?) then a crash. 2004-12-30 04:39:17 +00:00
Ilia Alshanetsky
4bef3dde2d MFB: fixed test case 2004-12-30 04:11:33 +00:00
Ilia Alshanetsky
585833ab7e Fixed proto. 2004-12-30 01:23:44 +00:00
Ilia Alshanetsky
8f7f00178f Fixed typo. 2004-12-29 21:56:42 +00:00
Ilia Alshanetsky
12c2113b3e Fixed compiler warnings. 2004-12-29 21:40:34 +00:00
Ilia Alshanetsky
ed64463bdb Fixed memory leaks. 2004-12-29 21:33:03 +00:00
Ilia Alshanetsky
742f8c2502 MFB: don't perform pointless operations. 2004-12-29 21:25:00 +00:00
Ilia Alshanetsky
3f79dfbb04 Don't forget to unload t1lib. 2004-12-29 21:07:59 +00:00
Frank M. Kromann
70c51c4ee6 Fix typo 2004-12-29 20:18:34 +00:00
Antony Dovgal
6528b1b0b4 more typos 2004-12-29 16:11:42 +00:00
Antony Dovgal
0460f73db2 MFB: fix typos 2004-12-29 13:53:40 +00:00
Georg Richter
57fa54af2d added property 'id' to retrieve statement id (required by PEAR DB, to support
mysqli prepared statements)
2004-12-29 11:46:13 +00:00
Wez Furlong
73186934d8 more get_method signature changes 2004-12-27 22:04:54 +00:00
Zeev Suraski
f64c4f4569 MFB - description fix 2004-12-27 18:22:50 +00:00
Georg Richter
dc63cb7feb fixed testcase 047
fixed windows compile error
2004-12-27 15:39:35 +00:00
Marcus Boerger
7be33a225e - Need to unmangle the class name here 2004-12-27 15:13:26 +00:00
Marcus Boerger
03af7c8abc - More proto/error message fixes 2004-12-27 13:32:22 +00:00
Georg Richter
698c0361d6 Fix for feature request #31015: added length for field length 2004-12-27 11:48:57 +00:00
Marcus Boerger
4b80deed8e - Small fixlet (by Tony) 2004-12-27 11:41:45 +00:00
Wez Furlong
823d48bd37 hmmmmm. Bound params *were* working this way before, but now it seems that
I have to bind them as text.
2004-12-26 18:13:52 +00:00
Georg Richter
683f6c879c added constructors for mysqli_stmt and mysqli_result classes 2004-12-26 13:16:40 +00:00
Wez Furlong
b44785e958 don't blow up under HEAD 2004-12-26 04:50:09 +00:00
Georg Richter
ea22bf6063 fix for bug 31141 2004-12-25 16:42:53 +00:00
Marcus Boerger
8c7bd30a7b - Add ReflectionClass::hasMethod() (thanks to Johannes S.) 2004-12-25 16:27:27 +00:00
Wez Furlong
c8b2f43005 fix build issues 2004-12-25 04:01:30 +00:00
Wez Furlong
843807c647 When a socket is non-blocking, don't block ssl enabled sockets.
Allow for non-blocking negotiation when calling stream_socket_enable_crypto().
That function will return the foolowing values:

false - negotiation failed
0     - try again when more data is available (only for non-blocking sockets)
true  - ssl was enabled
2004-12-25 02:02:56 +00:00
Antony Dovgal
ffb2cf7a94 return empty string when got empty parameter 2004-12-24 19:45:54 +00:00
Wez Furlong
e1f3beaa13 really don't blow up 2004-12-23 19:39:22 +00:00
Ilia Alshanetsky
d0f606f11d Fixed several buffer overflows. 2004-12-23 19:29:12 +00:00
Antony Dovgal
38d8e20f68 destroy return_value and fix leak in array_fill() 2004-12-23 16:35:48 +00:00
Antony Dovgal
78edc7e65a add Oracle Instant Client support (initial patch by cjbj at hotmail dot com) 2004-12-23 16:20:09 +00:00
Wez Furlong
d3d757d95a don't crash... 2004-12-23 05:56:50 +00:00
Ilia Alshanetsky
b19e666946 Fixed bug #31142 (imap_mail_compose() fails to generate correct output). 2004-12-22 17:27:39 +00:00
Ilia Alshanetsky
4ab69902dc Fixed possible crash in imap_mail_compose(). 2004-12-21 15:47:14 +00:00
foobar
b6823b673e - Fixed bug #28248 (Can not compile --with-sybase and freetds) 2004-12-21 06:57:01 +00:00
Magnus M��tt�
774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +00:00
foobar
b8056095c6 - Fixed bug #31145 (configure is using -lcpdf instead of -lcpdfm) 2004-12-21 04:21:43 +00:00
Wez Furlong
0a42a1f422 Errr... fix leak 2004-12-21 00:37:01 +00:00
Georg Richter
5c50f0bb30 prevent type conversion during mysql_stmt_execute for NULL variables 2004-12-20 16:39:14 +00:00
Ilia Alshanetsky
ec83570232 Fixed bug #31103 (Better error message when c-client cannot be found). 2004-12-19 18:16:50 +00:00
Derick Rethans
13c2cbb515 - MF43: Fixed bug #31072 (var_export() does not output an array element with an
empty string key). (Derick)
2004-12-17 14:40:39 +00:00
Rob Richards
b462fc8bd2 Fixed bug #31139 (XML Parser Functions seem to drop &amp; when parsing) 2004-12-17 12:20:50 +00:00
Ilia Alshanetsky
77c0395968 Fixed bug #31087 (broken php_url_encode_hash macro). 2004-12-16 22:39:39 +00:00
Frank M. Kromann
4f8973fcdc Fix #31120 and #31135. mssql_query returns false on successfill inserts and stored procedures 2004-12-16 21:47:23 +00:00
Antony Dovgal
33c24b5436 fix leak (init array only if we got valid start key) 2004-12-16 19:13:58 +00:00
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Frank M. Kromann
7800086169 Adding missing zend_list_addref() and make SWFShape::drawArc() work 2004-12-15 18:01:31 +00:00
Ilia Alshanetsky
cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +00:00
Dmitry Stogov
b20a007aa0 Fixed build with custom libming 2004-12-14 16:15:58 +00:00
Dmitry Stogov
860754f0f9 Fixed build on linux-glibc21-i386 2004-12-14 14:01:06 +00:00
Dmitry Stogov
3f0c2347ff Fixed bug #30994 (SOAP server unable to handle request with references). 2004-12-14 13:58:57 +00:00
Ilia Alshanetsky
6d7cac7731 Fixed bug #28228 (NULL decimal separator is not being handled correctly). 2004-12-14 00:37:19 +00:00
Wez Furlong
419bbffeef Make it really build... 2004-12-13 13:52:01 +00:00
Joe Orton
7263c220dd More PHP_LIBDIR fixes for lib64 platforms. 2004-12-13 10:30:21 +00:00
Wez Furlong
d213b67cdf Add missing constants for socketpair().
I thought I had included these...
Good catch Nuno :)
2004-12-12 23:21:53 +00:00
Wez Furlong
d10b86f8f4 Add stream_socket_pair(), a streams based version of socketpair().
Modified patch from Vincent [six at t0x dot net]
2004-12-12 16:10:35 +00:00
Ilia Alshanetsky
c96a1e0ddf Fixed bug #31056 (php_std_date() returns invalid formatted date if
y2k_compliance is On).

# will MFH to 5.0.X and 4.3.X after release
2004-12-12 15:50:06 +00:00
Antony Dovgal
01b996b98b fix buffer overrun & segfault in get_meta_tags() when there is no tag value 2004-12-10 10:30:01 +00:00