Yiduo (David) Wang
2514bcfdec
stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL
2007-10-08 04:05:22 +00:00
Yiduo (David) Wang
95da0dc570
Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:15:07 +00:00
Dmitry Stogov
8146078f7b
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:28:44 +00:00
Stanislav Malyshev
88a97c56dd
MFB: fix crash if stream is empty and reader function sets buffer as null
2007-09-12 21:27:56 +00:00
Ilia Alshanetsky
8e8258be1c
Fixed a typo
2007-05-16 20:12:53 +00:00
Ilia Alshanetsky
09ecbca0e1
MFB: PDO:FETCH_KEY_PAIR
2007-05-16 19:58:58 +00:00
Antony Dovgal
94723e9457
fix #40727 (segfault in PDO when failed to bind parameters)
2007-03-07 09:02:18 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Wez Furlong
bcb1fed3a7
merge PHP 5 pdo into HEAD. This source compiles on both PHP 5 and PHP 6.
...
If you're poking around in here, please make sure that any changes you make
compile on both PHP 5 and 6. Thanks!
2006-12-09 22:18:43 +00:00
Ilia Alshanetsky
ccc4783e4a
MFB: Fixed bug #39759 (Can't use stored procedures fetching multiple result
...
sets in pdo_mysql).
2006-12-08 19:51:29 +00:00
Ilia Alshanetsky
6f6577665e
MFB: Fixed bug #38319 (Remove bogus warnings from persistent PDO connections).
2006-12-04 03:08:52 +00:00
Ilia Alshanetsky
2b703207d5
MFB: Fixed bug #39656 (crash when calling fetch() on a PDO statment object
...
after closeCursor()).
2006-11-28 16:28:07 +00:00
Ilia Alshanetsky
b38a50bb4f
MFB: Fixed bug #39398 (Booleans are not automatically translated to
...
integers).
2006-11-07 17:57:37 +00:00
Antony Dovgal
7e62e16fa0
fix possible crash in free_statement()
2006-08-23 19:15:46 +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
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
Antony Dovgal
59e16e52de
init variables
2006-06-20 13:28:02 +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
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
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
Ilia Alshanetsky
d6118f1b6e
MFB51: Properly calculate the size of the result array.
2006-03-19 17:35:56 +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
Dmitry Stogov
c366cc6d1a
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
2006-03-02 13:12:45 +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
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
Dmitry Stogov
bb0f2051c4
Fixed wrong prototype and error message
2006-02-20 10:50:58 +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
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
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
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
foobar
a208d9a966
- Nuke php3 legacy
2005-12-06 02:28:26 +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
Ilia Alshanetsky
40b2772dcd
MFB51: Fixed bug #35358 (Incorrect error messages for PDO class constants).
2005-11-24 16:22:27 +00:00
Marcus Boerger
cd5a60d36d
- Fix memleaks
2005-10-30 22:55:21 +00:00