Antony Dovgal
16a298bc1d
more 64bit fixes
2006-09-28 23:27:49 +00:00
Antony Dovgal
86eb8b4178
more 64bit fixes
2006-09-28 23:03:45 +00:00
Ilia Alshanetsky
8690a5a2d9
MFB:
...
Fixed bug #37870 (pgo_pgsql tries to de-allocate unused statements).
Fixed bug #36681 (pdo_pgsql driver incorrectly ignored some errors).
Fixed test for bug #38253 not to use faulty SQL that generates
errors in PostgreSQL
2006-09-19 15:46:25 +00:00
Antony Dovgal
a934fcb749
it's not a PEAR only issue, this happens with shared builds also
2006-08-24 16:00:35 +00:00
Antony Dovgal
7e62e16fa0
fix possible crash in free_statement()
2006-08-23 19:15:46 +00:00
Antony Dovgal
ed72b00458
typo
2006-08-21 17:11:46 +00:00
Ilia Alshanetsky
1e101793bb
MFB: Fixed bug #38535 (memory corruption in pdo_pgsql driver on error
...
retrieval inside a failed query executed via query() method).
2006-08-21 16:54:05 +00:00
Ilia Alshanetsky
24441c81da
MFB: Added skip condition for sqlite2 driver, that uses more forgiving
...
emulated prepared statements.
2006-08-16 14:10:16 +00:00
Ilia Alshanetsky
f148d3fa4c
MFB: Fixed bug #38394 (PDO fails to recover from failed prepared statement
...
execution).
2006-08-09 14:46:35 +00:00
Antony Dovgal
dbe2092313
implement zend_unicode_to_string() and zend_string_to_unicode()
...
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Ilia Alshanetsky
434704eaf0
MFB: Fixed memory leak with persistent connections
2006-08-07 17:33:20 +00:00
Ilia Alshanetsky
329a7b6301
Fixed build (added missing functions)
2006-08-01 16:37:11 +00:00
Ilia Alshanetsky
06bc5e1b46
MFB: Fixed memory leak on unused bound name parameters.
2006-08-01 15:06:12 +00:00
Ilia Alshanetsky
0af6ef771e
MFB: Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature
...
object destruction).
2006-07-31 20:19:18 +00:00
Antony Dovgal
34cfab8e7c
MFB: bug #38253 (PDO produces segfault with default fetch mode)
...
add test
2006-07-30 11:20:41 +00:00
Dmitry Stogov
6abfcba273
Destructors call order is changed (Fixed bug #36759 - Objects destructors are invoked in wrong order when script is finished)
2006-07-12 07:55:04 +00:00
Hartmut Holzgraefe
743deb09c9
"transaction" tests should test commit, too, not only rollback
2006-07-10 16:29:24 +00:00
Hartmut Holzgraefe
4ea4434475
two additional tests improving pdo/pdo_mysql test code coverage
2006-07-10 14:05:46 +00:00
Hartmut Holzgraefe
d2cae0ccba
SHOW ENGINES is only available in PHP 4.1.2 and above (and the output
...
format slightly changed between 4.1 and 5.0, too),
SHOW VARIABLES LIKE 'have_%' is the more portable alternative here
2006-07-10 07:39:23 +00:00
Antony Dovgal
59e16e52de
init variables
2006-06-20 13:28:02 +00:00
Dmitry Stogov
943960c324
Added automatic module globals management
2006-06-13 13:12:20 +00:00
Rasmus Lerdorf
2ef05dfd60
Remove useless RINIT/RSHUTDOWN calls
2006-06-07 21:13:33 +00:00
Ilia Alshanetsky
5b40f43faa
MFB: Fixed bug #37709 (Possible crash in PDO::errorCode()).
2006-06-07 03:33:39 +00:00
Antony Dovgal
cfeff66e9a
need to call zend_is_callable() if callable is known to be invalid
2006-05-30 09:46:01 +00:00
Antony Dovgal
08ff489ef8
fix skip reason
2006-05-17 10:12:44 +00:00
Marcus Boerger
40ff813374
- CS
2006-05-10 21:03:34 +00:00
Antony Dovgal
a330edf4cf
fix build
2006-05-04 07:10:37 +00:00
Sara Golemon
0d6603d22a
Expose PARAM_EVT_* constants
2006-05-03 21:57:58 +00:00
Frank M. Kromann
954199c9fb
More ZSTR() fixes
2006-04-29 14:53:26 +00:00
Antony Dovgal
22d4fb98e3
don't segfault if an exception has been thrown from the fetch handler
2006-04-22 19:10:40 +00:00
Antony Dovgal
036fc47efb
fix possible NULL dereference
2006-03-27 16:43:02 +00:00
Dmitry Stogov
159bfd55e1
Unicode support
2006-03-27 10:25:35 +00:00
Antony Dovgal
4b33fba3f5
return FALSE if driver doesn't support quoting and returns 0
...
also fixes PECL bug #6365
2006-03-23 19:03:30 +00:00
Ilia Alshanetsky
96afde2af7
MFB51:
...
Added myself to PDO and PDO_MySQL credits
Added Wez to PDO_MySQL credits
Added Tony to Q&A team credits
Regenerated the credits file
2006-03-23 18:39:12 +00:00
Marcus Boerger
dd4f59c9c0
- Drop PDO::setDefaultFetchMode()
2006-03-20 22:18:15 +00:00
Marcus Boerger
ee3a559a58
- WS
2006-03-20 22:17:41 +00:00
Marcus Boerger
56ed3211a6
- Added PDO_ATTR_DEFAULT_FETCH_MODE which controls the default fetch mode
2006-03-20 20:54:34 +00:00
Antony Dovgal
6fd8aaae87
this check should be present in HEAD as well, no only in 5_1
2006-03-19 22:57:47 +00:00
Marcus Boerger
1aeff811c0
- Make all compile without errors/warnings
2006-03-19 20:57:53 +00:00
Marcus Boerger
3273a5eab9
- Little reordering now and disable a bit of tony's code to make it compile again
2006-03-19 20:53:58 +00:00
Marcus Boerger
6154b639ed
- Handle attributes in dbh ctor (jean pütz aka tony)
2006-03-19 20:33:51 +00:00
Marcus Boerger
98ddfbba1a
- CS
2006-03-19 20:26:20 +00:00
Marcus Boerger
ef6d420aad
- Explicitly make the default default FETCH_BOTH
2006-03-19 20:08:29 +00:00
Marcus Boerger
786d78f683
- Prevent default fetch mode (0) from passing down to actual fetching and
...
make it behave like FETCH_BOTH which is the intended overall default
2006-03-19 19:46:18 +00:00
Marcus Boerger
31409d3bed
- Must use > 0 here (decrement after check)
2006-03-19 19:05:28 +00:00
Marcus Boerger
74dd417dfe
- Simplify, default mode transfer also in prepare
2006-03-19 19:04:32 +00:00
Ilia Alshanetsky
d6118f1b6e
MFB51: Properly calculate the size of the result array.
2006-03-19 17:35:56 +00:00
Marcus Boerger
e20ff8009b
- Need to change Pierre's patch abit
2006-03-18 23:35:34 +00:00
Marcus Boerger
88c4284df7
- Add test
2006-03-18 23:13:43 +00:00
Marcus Boerger
d82abbf8d4
- Add PDO::setDEfaultFetchMode() (Pierre)
2006-03-18 23:10:40 +00:00
Marcus Boerger
637443e794
- Simplify
2006-03-18 23:09:47 +00:00
Antony Dovgal
8ff44542ff
check stream for NULL before writing to it
...
remove unnecessary semicolons
2006-03-18 22:25:29 +00:00
Ilia Alshanetsky
111046ceed
MFB51: Fixed memory leak on unused bind var.
2006-03-15 15:27:08 +00:00
Pierre Joye
bb1ec86f9d
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
...
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Marcus Boerger
18f1439b32
- Proto fixes
2006-03-06 10:03:25 +00:00
Dmitry Stogov
c366cc6d1a
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
2006-03-02 13:12:45 +00:00
Marcus Boerger
75b3d578d3
- Add unicode results
2006-02-26 12:26:31 +00:00
Marcus Boerger
e610f5959f
- s/FETCH_PROPSLATE/FETCH_PROPS_LATE/ as per IRC discussion
2006-02-24 16:04:13 +00:00
Marcus Boerger
252ad86917
- Add FETCH_PROPSLATE: fetch props after calling ctor
...
# Fixes bug #36428
2006-02-24 15:56:03 +00:00
Dmitry Stogov
36002f16c3
Fixed test file
2006-02-22 12:22:07 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Marcus Boerger
76df257b15
- Simplify by remove redundant checks
2006-02-21 00:55:38 +00:00
Dmitry Stogov
bb0f2051c4
Fixed wrong prototype and error message
2006-02-20 10:50:58 +00:00
Andi Gutmans
1efe984d08
- Get rid of using ENFORCE_SAFE_MODE.
2006-02-19 04:29:42 +00:00
Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
2006-02-13 10:23:59 +00:00
Marcus Boerger
c67d8b2152
- Iterator API was changed
2006-02-05 23:31:47 +00:00
Antony Dovgal
d7393d2d02
fix build
2006-02-01 09:10:23 +00:00
Ilia Alshanetsky
c064a9e243
MFB51: Fixed bug #36222 (errorInfo in PDOException is always NULL).
2006-01-31 17:21:25 +00:00
Ilia Alshanetsky
da2b91d1e1
MFB51: Properly rewrite queries where a bound parameter appears more then
...
once.
2006-01-25 16:35:46 +00:00
Marcus Boerger
2d24ebbe16
- WS
2006-01-22 23:53:53 +00:00
Marcus Boerger
7c8de803d0
- Fix memory leaks
2006-01-22 23:48:02 +00:00
Marcus Boerger
86162f7a38
- WS
2006-01-22 23:46:50 +00:00
Marcus Boerger
693c5ad27f
- Update test
2006-01-22 22:06:02 +00:00
Ilia Alshanetsky
7b8104bcf6
Fixed bug #35797 (segfault on PDOStatement::execute() with
...
zend.ze1_compatibility_mode = On).
2006-01-01 20:08:19 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Dmitry Stogov
b863d32288
Fixed memory corruption and termination through _zend_bailout()
2005-12-23 09:41:31 +00:00
foobar
f5318a9530
touch with re2c 0.9.11
2005-12-18 19:54:50 +00:00
Ilia Alshanetsky
bc2ed13110
MFB51: Fixed memory corruption when FETCH_LAZY mode is being used.
2005-12-17 20:00:14 +00:00
Ilia Alshanetsky
c64ae2f2c9
MFB51: Fixed bug #35694 (Improved error message for invalid fetch mode).
2005-12-15 22:35:18 +00:00
Marcus Boerger
90a321d854
- MFB
2005-12-11 15:28:52 +00:00
Marcus Boerger
3f8491c2fa
- Show an error if no pdo object can be created
2005-12-11 15:24:38 +00:00
foobar
a208d9a966
- Nuke php3 legacy
2005-12-06 02:28:26 +00:00
foobar
4851c062fb
fix typo
2005-12-05 22:40:31 +00:00
foobar
130333274b
- Do not use the PHP3 era names!
2005-12-05 22:38:17 +00:00
Antony Dovgal
c7631a2dca
fix #35543 (php crash when calling non existing method of a class that extends PDO)
2005-12-04 11:40:52 +00:00
Antony Dovgal
37eeba6f27
tweak the fix
2005-12-01 20:39:49 +00:00
Antony Dovgal
25ac5ff0b7
fix #35508 (PDO fails when unknown fetch mode specified)
2005-12-01 19:59:36 +00:00
Antony Dovgal
dc1d5122d1
fix #35430 (PDO crashes on incorrect FETCH_FUNC use)
2005-11-27 20:56:46 +00:00
foobar
04dffec1c4
- Use right define: ZEND_MODULE_API_NO as these are PHP modules, not Zend extensions
2005-11-25 15:40:14 +00:00
Ilia Alshanetsky
40b2772dcd
MFB51: Fixed bug #35358 (Incorrect error messages for PDO class constants).
2005-11-24 16:22:27 +00:00
Ilia Alshanetsky
9979ac2215
MFB51: Fixed bug #35303 (PDO prepare() crashes with invalid parameters).
2005-11-20 20:07:38 +00:00
Antony Dovgal
9f4390ce8b
fix #35293 (PDO segfaults when using persistent connections)
2005-11-19 16:39:47 +00:00
foobar
2434baffdb
- Fix #line paths
2005-11-08 20:12:09 +00:00
Marcus Boerger
cd5a60d36d
- Fix memleaks
2005-10-30 22:55:21 +00:00
Marcus Boerger
ef3b427e5c
- Fix PECL Bug #5772 ; FETCH_FUNC broken for mixed case function names
...
# Mhhh, now wez and me did it in different branches only because i forgot
# to commit and MFH too
2005-10-29 11:10:34 +00:00
Dmitry Stogov
3c166ac947
Fixed test (unicode support)
2005-10-28 07:31:21 +00:00
Antony Dovgal
4329fff15f
forgot to commit new pdo_attr_ function
2005-10-27 19:38:36 +00:00
Dan Scott
0a7164c970
Add test for PDO::ATTR_CASE.
2005-10-26 23:46:52 +00:00
Dan Scott
52f9772049
Correct non-standard SQL. Standard SQL would define "DEFAULT NULL" -- but
...
that is the default value if the DEFAULT clause is omitted anyways.
2005-10-26 08:32:25 +00:00
Antony Dovgal
aad3dcd493
use correct enum type for the arg
2005-10-25 16:03:11 +00:00