Wez Furlong
bf85bf515e
add sanity checks
2005-07-27 14:18:01 +00:00
Wez Furlong
a6f0d99e5b
fixup the build in HEAD again... moved the maintainer only stuff out of the
...
config.m4 and into a separate script to make it cleaner
2005-07-27 11:53:00 +00:00
Wez Furlong
b87c4b6abe
typo
2005-07-27 04:20:50 +00:00
Wez Furlong
32cf3cc19f
Yes, I can't count the months, and no, I'm not related to Ilia.
2005-07-27 04:07:44 +00:00
Wez Furlong
dcac8e1a44
Prep for PECL release.
...
Fixup config.m4 to work properly under a pear tool vpath build
# seems strange that it was so badly broken... did something major change?
2005-07-27 04:07:11 +00:00
Wez Furlong
9b73ab50b6
Add support for instant client 10.1.0.4.
...
Theoretically also add support for 10.2 libraries.
Prep for PECL release.
2005-07-27 03:48:08 +00:00
Wez Furlong
eab79e8de6
prep for pecl release
2005-07-27 03:22:03 +00:00
Wez Furlong
73d7fb493c
Add package.xml
2005-07-27 03:13:05 +00:00
Wez Furlong
f7c0b7d09e
prep for PECL release
2005-07-27 03:12:43 +00:00
Wez Furlong
ba77f8515b
prep for PECL release
2005-07-27 02:51:01 +00:00
Wez Furlong
163c92510a
Prep for PECL release
2005-07-27 02:39:46 +00:00
Ilia Alshanetsky
2d920f6848
Only set authorizer if we intend to use it (safe_mode or open_basedir).
2005-07-27 02:35:37 +00:00
Ilia Alshanetsky
86d81fd743
Fixed bug #33869 (strtotime() problem with "+1days" format).
2005-07-26 22:29:27 +00:00
Ilia Alshanetsky
f2874cf737
Fix for bug #33869
2005-07-26 22:22:06 +00:00
Ilia Alshanetsky
b77cefd588
Updated URL leading to latest aspell.
2005-07-25 22:53:01 +00:00
Marcus Boerger
e8ea32a789
- Add new test
2005-07-25 20:21:43 +00:00
Marcus Boerger
c6018b85c4
- Be flexible about spellbook - we want to test the ext not the spell corrections available
2005-07-25 18:27:41 +00:00
Anantha Kesari H Y
b1183590e9
ext/standard/fsock.h
...
Removing redundant inclusion of headers for NetWare
ext/standard/lcg.c
NetWare LibC SDK sys/time.h implicitly includes sys/timval.h so nothing special needed for NetWare here.
--Kamesh
2005-07-25 13:12:10 +00:00
Ilia Alshanetsky
bc80bdb973
Added test for bug #33841 .
2005-07-24 17:19:59 +00:00
Ilia Alshanetsky
66125c18a3
Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
...
on execution of prepared statments).
2005-07-23 23:34:04 +00:00
Ilia Alshanetsky
29bf2d3a09
Fixed bug in str_word_count() when charlist if specified and "word" starts
...
with a character found inside the charlist.
2005-07-23 19:44:13 +00:00
Pierre Joye
9859780570
- fix #33794 imagerotate rotates only CCW
...
introduced by transparent color patch
2005-07-23 16:41:38 +00:00
foobar
03897956b2
revert fix that did not fix anything
2005-07-22 22:00:55 +00:00
Yasuo Ohgaki
813bd67320
fix build with older postgresql
2005-07-22 18:48:14 +00:00
Marcus Boerger
d8eece2b43
- Add missing part to make colon in parameter binding optional
2005-07-22 14:31:20 +00:00
Marcus Boerger
e4b07b3ebe
- Test the colon is optional in binding
2005-07-22 14:27:35 +00:00
Wez Furlong
cfe1dc3b46
this looks like a much better fix for refcounting/shutdown in lazy objects.
2005-07-22 04:33:56 +00:00
Wez Furlong
882503110d
fix leak (ugh, this nuance gets me every time)
2005-07-22 02:09:19 +00:00
Wez Furlong
3560bb9c2b
Fixes #33785 for me
2005-07-22 01:34:43 +00:00
Ilia Alshanetsky
3db688c6c9
Added test for PDO_FETCH_LAZY.
...
# This currently fails, see bug 33785
2005-07-21 19:33:48 +00:00
Derick Rethans
8a3d3aefbb
- Changed the year parameter so that 0..69 maps to 2000..2069 and 70..100 maps
...
to 1970..2000, which was in the original code, but not in the documentation.
2005-07-21 10:09:40 +00:00
Dmitry Stogov
e4b1fb6455
Recursion protection
2005-07-21 07:18:02 +00:00
Ilia Alshanetsky
4b6d351cd3
Missing bit of the previous commits
2005-07-20 16:22:09 +00:00
Dmitry Stogov
e07d2f4803
"_local_cert" and "_passphrase" properties moved into "_stream_context".
...
As a result now it is possible to use certificates during access WSDL files.
2005-07-20 10:21:49 +00:00
Dmitry Stogov
3102638061
Fixed tests
2005-07-20 10:06:10 +00:00
Derick Rethans
e6c1ff254d
- Fixed bug #33578 (strtotime() problem with "Oct17" format).
...
- Fixed problems with lone years in strtotime().
- Added functions to timelib to get a list of all abbreviations and timezone
identifiers.
- Fixed problems with parsed dates that only have GMT offsets associated
with them.
- Fixed a Windows compile problem.
- Added special constants for different often used date formats (DATE_ISO8601,
DATE_RFC822, DATE_RSS etc).
- Fixed date_default_timezone_get() to return the guessed timezone if none
was set yet with date_default_timezone_set().
- Added experimental support for Date/Timezone objects as per specifications.
2005-07-20 08:31:02 +00:00
Marcus Boerger
efcfe44299
- Use correct/complete skipif condition
2005-07-20 07:33:19 +00:00
Wez Furlong
ec50ec65b9
use pdo core test suite.
...
Now passes all but one test. Volunteers that want to track down the cause
for test pdo_018.phpt not passing are welcome.
2005-07-20 05:27:27 +00:00
Wez Furlong
08891a1c1b
some drivers want you to say that its ok to use NULL for these columns.
2005-07-20 05:27:00 +00:00
Ilia Alshanetsky
99d8090cb2
Fixed memory corruption (wrong order of operations of stored prep. stmt).
...
Optimize the max length calculation process.
2005-07-20 04:30:14 +00:00
Ilia Alshanetsky
97e8c6f4a9
Proper handling for databases that need to pre-calculate length of large
...
columns, which is not normally done for performance reasons.
2005-07-20 03:38:33 +00:00
Wez Furlong
79f3cb9856
Add PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute, which, when set
...
to true, forces the driver to use PDO's own emulated prepared statement
support.
Why would you want that, considering that native prepared statements are
supposed to be the best thing ever?
"Often postgresql will have to plan the query without knowing the parameters -
and it will choose a bad plan. In some cases it will plan based on the first
parameters you send. "
Ugh. So now we have a way to let you decide that you know better than the
pgsql query planner.
2005-07-20 02:37:57 +00:00
Ilia Alshanetsky
9438584d76
Only set attribute if result set contains some columns.
2005-07-20 02:36:34 +00:00
Ilia Alshanetsky
1e1d2e2b0d
clean up
2005-07-20 02:19:20 +00:00
Wez Furlong
8adbc92d4b
this hack can and does segv; let's remove it.
2005-07-20 01:59:14 +00:00
foobar
40a049b27e
Skip tests in 64bit systems
2005-07-20 00:18:24 +00:00
Wez Furlong
3b5af6d43f
Remove stale #ifdefs (this is PHP 5 only code).
...
Add a stream_context option to the SoapClient constructor; this allows
generic stream context options to be set without having to add code to the
SoapClient every time a context option is added.
2005-07-19 19:48:02 +00:00
Wez Furlong
d4348d11dd
try to make the test a bit more portable
2005-07-19 16:55:48 +00:00
Wez Furlong
3ebfbe6bd2
this should always be a string here, but just in case, convert it.
2005-07-19 16:55:22 +00:00
Wez Furlong
6e7a8f10d1
if we didn't detect an error, don't return -1 rows, as that means that we found an error
2005-07-19 16:54:51 +00:00
Wez Furlong
43c1a1b73c
Closes #33533 by implementing proper dynamic fetching of long text columns.
2005-07-19 15:26:16 +00:00
Wez Furlong
e568ea3277
Limit the size of columns to 64K, so we don't try to allocate 2GB for each text
...
column coming out of informix.
Refs Bug #33533 .
Not totally closed yet; still need to cater for text fields longer than 64k in a sane manner.
2005-07-19 03:39:49 +00:00
Brad House
96a273a10d
\#if BRAD_0'd latest changes as requested until 5.1.0 release
2005-07-19 00:34:39 +00:00
foobar
db138c59d4
MFB4_4: Fix compile problem with --regex=system on some systems
2005-07-18 23:17:24 +00:00
Brad House
936e199d38
sync missing functions from libmonetra-5
2005-07-18 20:10:07 +00:00
Dmitry Stogov
70bd938bbd
Fixed bug in new module statrup mechanism
2005-07-18 16:20:08 +00:00
foobar
e63d1706cf
touch with working re2c
2005-07-18 16:08:37 +00:00
Wez Furlong
be88f5a960
make a start on a debugging function.
2005-07-18 14:46:55 +00:00
Wez Furlong
d9826ec143
touch generated file
2005-07-18 14:44:56 +00:00
Wez Furlong
7f053e062c
avoid :: when looking for named parameters.
...
Refs Bug #33736 .
2005-07-18 14:44:14 +00:00
Wez Furlong
4854dd71de
this needs to be the column count, otherwise a db->query() that returns 0 rows
...
will fail rather than returning a statement with no rows.
2005-07-18 14:40:49 +00:00
Ilia Alshanetsky
a6931b3923
Cleanup buffers on handle re-use.
2005-07-18 13:47:33 +00:00
Frank M. Kromann
890b1602fb
Make sure we build with SWFPrebuilt.
2005-07-18 00:42:48 +00:00
Marcus Boerger
503330fb88
- Provide distinction and distinct tests
2005-07-18 00:14:54 +00:00
Marcus Boerger
70ec0f41ac
- Compatibility with ming 0.2a and 0.3a
2005-07-17 23:58:40 +00:00
Marcus Boerger
62c47d1778
- Write temp file in test dir
2005-07-17 23:58:02 +00:00
Marcus Boerger
dfeddbe539
- If you ask me both (expat and libxml) are not really accurate about byte
...
positions and columns...however the line number information is now
correct for both so for the moment we live with the situation that they
return different byte and column information.
2005-07-17 17:38:16 +00:00
Ilia Alshanetsky
2889c497f5
Added 2 missing cURL options available in all versions.
2005-07-16 18:33:09 +00:00
George Schlossnagle
d0ec239661
Darwin seems to like this much better.
2005-07-15 16:47:48 +00:00
George Schlossnagle
869d6002d6
Darwin seems to like this arrangement much better.
2005-07-15 16:47:12 +00:00
Sara Golemon
67a66b858f
Pass context parameter through to xport_create
2005-07-15 15:45:43 +00:00
Anantha Kesari H Y
384a96faf6
ext/standard/file.h NetWare LibC has fnmatch and realpath implemented.
...
ext/standard/syslog.c Except LOG_SYSLOG other syslog macros are supported by NetWare LibC.
ext/standard/string.c NetWare fix for dirname
-- Kamesh
2005-07-15 12:35:12 +00:00
Ilia Alshanetsky
7d1b4145b1
Fixed compiler warning.
2005-07-14 23:17:16 +00:00
Ilia Alshanetsky
6be7584eba
Properly recognize redirect code 303.
...
When encountering redirect on POST request follow browsers and cURL and
perform GET on the specified location field.
2005-07-14 14:59:16 +00:00
Wez Furlong
8c446726cf
Add test case
2005-07-14 02:21:03 +00:00
Wez Furlong
fc48f9096d
gah!
2005-07-14 02:20:52 +00:00
Wez Furlong
d025a14d33
Thanks 'james' (a visitor to my blog) for reporting this bug.
2005-07-14 02:09:54 +00:00
Wez Furlong
695e195a27
keep this as a placeholder for debugging weird regressions
2005-07-14 02:09:08 +00:00
Wez Furlong
fbc568013a
Add utility for driver-specific tests
2005-07-14 02:08:18 +00:00
Wez Furlong
0601249f82
it is not an error for a statement to return 0 rows.
...
Andrey: please run the test suite before each commit!
This broke beta 3 and was clearly visible as a result of running the tests.
Running further tests now.
2005-07-14 02:03:54 +00:00
Sara Golemon
45f624adc4
Route ftp:// wrapper via transports layer.\nFix typo in datastream crypto startup
2005-07-13 23:28:22 +00:00
foobar
ada35ab562
fixed typos
2005-07-13 07:04:29 +00:00
Antony Dovgal
502b00c3f6
add forgotten ifdefs, fix #33667 (mysqli doesn't compile)
2005-07-12 20:38:34 +00:00
Andrey Hristov
5232c4a544
ok, call pdo_mysql_error() before returning -1
2005-07-12 19:32:13 +00:00
Andrey Hristov
8899425e26
strictly check the result of mysql_affected_rows()
2005-07-12 19:22:05 +00:00
Ilia Alshanetsky
fa4ea0fff4
Added support for LOCK_EX flag for file_put_contents().
2005-07-12 17:55:38 +00:00
Georg Richter
9aabcf7016
changed version dependency for charset functions
2005-07-12 15:45:07 +00:00
Wez Furlong
3e5ddd2a80
compile before commit...
2005-07-12 12:21:53 +00:00
Wez Furlong
04dd0e1094
Enable unix build for dblib/sybase/freetds.
...
The extension is named pdo_dblib and the driver dblib on unix.
2005-07-12 12:16:02 +00:00
Wez Furlong
93962139fb
Avoid estrdup(NULL), modified patch from Zhao ming sen.
2005-07-12 11:02:23 +00:00
Georg Richter
9caaee66bd
removed charset structure. libmysql now provides a function
...
mysqli_get_character_set_info (Vers. 5.0.10)
2005-07-12 09:35:16 +00:00
foobar
2f558a3798
Touch with working re2c
2005-07-12 07:06:01 +00:00
Wez Furlong
0562581de8
touch generated file
2005-07-12 03:20:08 +00:00
Wez Furlong
9240c5f521
remember ? -> :pdox mapping so that binds by position can be mapped to names if required.
2005-07-12 03:19:44 +00:00
Wez Furlong
1bd3483dea
fix bug when query was rewritten from ? to :name
2005-07-12 03:18:17 +00:00
Wez Furlong
4f22ac0cdd
improve handling of bound input parameters when no maximal length value is set;
...
default to 4000 as the maximal length, which is the biggest size possible
without using a LONG type (if you specify anything larger than this, you'll end
up with ORA-1461).
Don't assume that all parameters were output parameters after execution, as
this would clobber the input values when used in a loop.
2005-07-12 02:43:39 +00:00
Wez Furlong
664ebfa499
expand oracle null handling compatability by offering the ability to convert
...
NULLs into empty strings as well as the other way around. It still doesn't
help a great deal in the long run, but at least the option is there.
Make sure hash tables are nulled out to avoid double freeing them.
2005-07-12 02:40:59 +00:00
Wez Furlong
f5a09e87ee
should always bind columns after execute.
...
There're probably more of these to fix.
2005-07-12 02:38:39 +00:00
Ilia Alshanetsky
e21f5f9592
A bit of further tuning.
2005-07-11 14:46:01 +00:00
Andrey Hristov
b3aa24ff98
fix a segfault with the following script:
...
<?php
$dbh = new PDO('mysql:dbname=test;host=localhost', "root", "secret");
$what = 1;
$stmt = $dbh->prepare('select a, b, c from t123 where a=:what');
$stmt->bindParam(1, $what, PDO_PARAM_INT, 12);
var_dump($stmt->execute());
var_dump($stmt->fetchObject());
?>
2005-07-11 14:14:56 +00:00
Andrey Hristov
9749926224
- mysql_affected_rows() already returns an unsigned long
...
- optimize a bit the real_escape
- handle the situation when libmysql bails out because of lack of memory
2005-07-11 13:52:13 +00:00
Ilia Alshanetsky
35df0e5571
Compiler warning fix.
2005-07-11 03:24:28 +00:00
foobar
21ed9234a0
- Moved ext/dbx and ext/ircg to PECL.
2005-07-10 19:05:09 +00:00
foobar
08f8fcf8f4
touch
2005-07-10 17:56:35 +00:00
Wez Furlong
0d7fa88b4e
Fix #33624 , mysterious crashes on shutdown on win32
2005-07-10 14:56:36 +00:00
Marcus Boerger
000ef9c4b5
- use three digit octal character definition
2005-07-10 14:04:20 +00:00
Andrey Hristov
31de8e9018
stmt->column_count is set only if the result has been already bound, don't
...
rely on that and use the real count which is kept in st_mysql_stmt
#of course using internal values is bad idea but the comment already says
#that this should be fixed
2005-07-10 02:58:51 +00:00
Andrey Hristov
55ab9b75a6
ok, calculate max_length only in case of a blob (normal, medium, long).
...
in case of a varchar lets allocate 255 bytes and be quick without asking
libmysql to update max_length
2005-07-10 02:49:14 +00:00
Andrey Hristov
2711d70d33
if the result set is buffered ask libmysql to compute the lengths, so
...
later allocate buffer as big as the largest value of the column in the
result set (max_legth positive).
2005-07-10 02:20:26 +00:00
Wez Furlong
5602a5ba65
Get precise lengths from the server, as suggested by Andrey.
2005-07-10 02:00:35 +00:00
Wez Furlong
3d373f86f0
Related to #33624 . Crashes for me on shutdown, but seems ok for the rest of the world.
2005-07-09 18:52:36 +00:00
Ilia Alshanetsky
eb4aff5a91
Added safety checks.
2005-07-09 05:08:54 +00:00
Ilia Alshanetsky
4c18dfc852
Make cursor closer work with emulation as well.
2005-07-09 05:04:43 +00:00
Wez Furlong
f21084cb0b
don't free the cols until we know we have another rowset
2005-07-09 05:01:14 +00:00
Ilia Alshanetsky
858d827790
Added cursor closer handler.
...
Fixed memory leak.
2005-07-09 04:54:04 +00:00
Ilia Alshanetsky
df60983b75
Added missing header check.
2005-07-09 04:43:16 +00:00
Ilia Alshanetsky
d3a9f93111
cursor_closer for SQLite.
2005-07-09 04:37:27 +00:00
Ilia Alshanetsky
c58e878513
Implement cursor_closer for MySQL driver.
2005-07-09 04:30:49 +00:00
Wez Furlong
007f571beb
for the transactions test case, detect working transactions before attempting to run the tests.
...
Additional ugliness required because mysql does stupid stuff like this:
mysql> CREATE TABLE foo (id int) TYPE=innodb;
Query OK, 0 rows affected, 2 warnings (0.00 sec)
mysql> SHOW CREATE TABLE foo;
CREATE TABLE `foo` (
`id` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
In addition, BEGIN, COMMIT and ROLLBACK all succeed, even when no tables
support transactions.
2005-07-09 04:28:45 +00:00
Ilia Alshanetsky
ba66cac1cf
Fixed memory leak
2005-07-09 04:21:14 +00:00
Wez Furlong
c2f3636cf2
Fix two bugs:
...
- execute() would not re-fetch meta data after nextRowset() had been called.
- buffered mode would only be enabled on the first execute on a statement handle.
2005-07-09 03:54:13 +00:00
Wez Furlong
d3b653e97b
Added:
...
proto bool PDOStatement::closeCursor()
Closes the cursor, leaving the statement ready for re-execution.
The purpose of the function is to free up the connection to the server so that
other queries may be issued, but leaving the statement in a state that it can
be re-executed.
This is implemented either as an optional driver specific method (allowing for
maximum efficiency), or as the generic PDO fallback if no driver specific
function is installed.
The PDO generic fallback is semantically the same as writing the following code
in your PHP script:
do {
while ($stmt->fetch())
;
if (!$stmt->nextRowset())
break;
} while (true);
2005-07-09 03:52:41 +00:00
Ilia Alshanetsky
5fe5da90ea
Safer way of allowing 'blank' user/pass.
...
# Thanks Wez.
2005-07-09 02:53:07 +00:00
foobar
15e772ce13
- No need to use convert_to_string_ex() when dealing with strings
2005-07-09 00:59:49 +00:00
foobar
fcee086982
- Fixed bug #33588 (LDAP: RootDSE query not possible).
2005-07-09 00:46:45 +00:00
Ilia Alshanetsky
0b1931a8ff
Fix needed for PostgreSQL driver to allow $user & $pass to be supplied via
...
DSN as NULL.
2005-07-08 23:33:35 +00:00
Wez Furlong
6ee00c8199
fix leak
2005-07-08 20:45:19 +00:00
Marcus Boerger
ca59b1158e
- Regenerate using re2c 0.9.8
2005-07-08 20:38:13 +00:00
Marcus Boerger
8d743e70e0
- std not needed -> avoid warning
2005-07-08 20:35:41 +00:00
Wez Furlong
7976182b94
Fix Bug #33111
2005-07-08 19:28:52 +00:00
Wez Furlong
168b6500fd
Fix #33618
2005-07-08 19:25:37 +00:00
Wez Furlong
6377c0ccca
Fix PECL #4753
2005-07-08 19:05:57 +00:00
Antony Dovgal
38e4fb09e0
fix tsrm build
2005-07-08 18:16:46 +00:00
Wez Furlong
512af63a63
rewrite original names to our preferred format
2005-07-08 17:01:20 +00:00
Wez Furlong
dec54a98fa
generated file
2005-07-08 17:00:48 +00:00
Wez Furlong
38a02b6244
For named-parameter-to-named-parameter rewrites, we need to map the original
...
names to the new names.
2005-07-08 17:00:28 +00:00
Ilia Alshanetsky
2301d93156
Some of us don't have PostgreSQL 8.0 :)
2005-07-08 16:20:13 +00:00
Ilia Alshanetsky
bf020f87e1
Missing bit of the previous patch.
2005-07-08 16:17:04 +00:00
Ilia Alshanetsky
046635075b
Fixed compiler warning.
2005-07-08 16:06:05 +00:00
Wez Furlong
529d8177fe
Add early support for native prepared statements in pgsql.
...
Note that some tests now fail; if we can't resolve this in time for the beta,
the prepare code should be disabled (I'll add a flag for this later today).
2005-07-08 15:27:34 +00:00
Wez Furlong
8f31f0cfaa
Fix a shutdown order issue I saw in the pgsql driver. Hope this doesn't mess
...
up something in the OCI driver; I think I've been here before.
2005-07-08 15:25:15 +00:00
Wez Furlong
206c7b8372
And the generated version of the parser
2005-07-08 15:24:42 +00:00
Wez Furlong
ab1ba644db
add a bit of a hack to cater for pgsql prepared statements.
...
These are effectively named statements with strong constraints on the naming
format. We cater for this in a fairly generic way: allow a driver to replace
the format string we use to generate names from positional parameters. In
addition, if that format is set, we always force a rewrite from regular names
to the strongly enforced names.
2005-07-08 15:24:21 +00:00
Wez Furlong
057e1973c7
and as a result, need to update the expected data
2005-07-08 15:21:43 +00:00
Wez Furlong
8e30a80733
we declare the column as NOT NULL, so inserting NULL is not a good idea.
2005-07-08 15:20:18 +00:00
Antony Dovgal
eb7dc34bfb
make use of T token
2005-07-08 12:39:51 +00:00
Antony Dovgal
592a0835fa
fix #33597 (setcookie() "expires" date format doesn't comply with RFC)
2005-07-08 12:30:24 +00:00
Antony Dovgal
39379b8f58
rename php_format_date() to date_format()
...
add wrapper for date_format() to use it in other extensions
2005-07-08 12:26:30 +00:00
Antony Dovgal
d705522bbe
fix #33614 (memory leak in new strftime())
2005-07-08 10:23:33 +00:00
Dmitry Stogov
76a447c900
Fixed HTTP basic authentication headers during subrequsts to xsd files
2005-07-08 09:36:28 +00:00