Popa Adrian Marius
b9a050100c
skip test for bug 43130 on firebird , not relevant
2012-08-20 16:56:37 +03:00
Xinchen Hui
3ac50cfe3f
Merge branch 'PHP-5.4'
2012-08-02 12:55:43 +08:00
Xinchen Hui
53c8612fe7
Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())
2012-08-02 12:55:05 +08:00
Xinchen Hui
cd896d69d9
Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())
2012-08-02 12:52:11 +08:00
Anatoliy Belsky
bd39495332
Fix for bug #62379 was missing in 5.3
2012-07-17 17:50:05 +02:00
Anatoliy Belsky
afba8b6597
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Fixed bug #62379 failing ODBC long column functionality
2012-07-13 15:38:38 +02:00
Matt Ficken
10251b20c3
Fixed bug #62379 failing ODBC long column functionality
2012-07-13 15:34:00 +02:00
Johannes Schlüter
b025b9d0cf
Fix #62432 ReflectionMethod random corrupt memory on high concurrent
...
This fixes the same issue in multiple extensions. This isn't needed
in later branches as 5.4 introduced object_properties_init()
2012-06-27 23:26:33 +02:00
Johannes Schlüter
d2718cb9ff
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Commit generated file
Fix bug #61755 parsing bug can lead to access violations
2012-04-19 12:49:47 +02:00
Johannes Schlüter
0589b19abf
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Commit generated file
Fix bug #61755 parsing bug can lead to access violations
Fix bug 61671 ext\spl\tests\fileobject_003.phpt fails
2012-04-19 12:47:47 +02:00
Johannes Schlüter
c06ec6bde4
Commit generated file
2012-04-19 12:47:09 +02:00
Johannes Schlüter
1b78aef426
Fix bug #61755 parsing bug can lead to access violations
2012-04-19 12:46:02 +02:00
Johannes Schlüter
15f552dbd0
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Update generated file.
Ensure the SQL parser is regenerated after changes.
Fix NEWS, the previous wrong was introduced in commit cb2a1c71c9
update NEWS
2012-04-18 22:51:06 +02:00
Johannes Schlüter
900751e8ae
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Update generated file.
Ensure the SQL parser is regenerated after changes.
2012-04-18 22:50:21 +02:00
Johannes Schlüter
e946eaca0b
Update generated file.
2012-04-18 22:49:03 +02:00
Johannes Schlüter
dda60f3014
Ensure the SQL parser is regenerated after changes.
2012-04-18 22:48:49 +02:00
Xinchen Hui
02b3b616ce
Add test for bug #61292 , bug was fixed in -r323935
2012-03-06 06:24:50 +00:00
Xinchen Hui
4d87ca2c7a
Add test for bug #61292 , bug was fixed in -r323935
2012-03-06 06:24:50 +00:00
Xinchen Hui
1a1a8242c4
Fixed bug #61292 (Segfault while calling a method on an overloaded PDO object)
2012-03-06 03:45:27 +00:00
Xinchen Hui
a32a199201
Fixed bug #61292 (Segfault while calling a method on an overloaded PDO object)
2012-03-06 03:45:27 +00:00
Matteo Beccati
479a3c3dc5
Bug #55663 , fixed test for bug 43139 on Firebird. Per request from mariuz
2012-01-02 11:43:25 +00:00
Matteo Beccati
daa8e833b2
Bug #55663 , fixed test for bug 43139 on Firebird. Per request from mariuz
2012-01-02 11:43:25 +00:00
Matteo Beccati
bedc816a1e
Bug #55663 , fixed test for bug 43139 on Firebird. Per request from mariuz
2012-01-02 11:43:25 +00:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
8775a37559
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Dmitry Stogov
cacf363957
Fixed bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
2011-11-08 10:11:25 +00:00
Dmitry Stogov
e86830273b
Fixed bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
2011-11-08 10:11:25 +00:00
Johannes Schlüter
127d7bc79e
- Fix bug #55776 (PDORow to session bug)
2011-09-25 12:39:05 +00:00
Johannes Schlüter
eb86165205
- Fix bug #55776 (PDORow to session bug)
2011-09-25 12:39:05 +00:00
Johannes Schlüter
9da3e6c1a6
- Fix bug #55776 (PDORow to session bug)
2011-09-25 12:39:05 +00:00
Ilia Alshanetsky
93763b11c9
Improve parameter handling cod
2011-09-13 16:36:29 +00:00
Ilia Alshanetsky
292c439ecf
Improve parameter handling cod
2011-09-13 16:36:29 +00:00
Dmitry Stogov
4a25a7740d
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Dmitry Stogov
e43ff1359e
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Christopher Jones
4840a4a28b
Update SKIPIFs for test portability
2011-09-08 20:13:32 +00:00
Christopher Jones
47f3bf02c9
Update SKIPIFs for test portability
2011-09-08 20:13:32 +00:00
Christopher Jones
e81fed3df5
Update SKIPIFs for test portability
2011-09-08 20:13:32 +00:00
Pierre Joye
0295d0d1aa
- add skipif
2011-09-06 06:50:56 +00:00
Pierre Joye
0878034b62
- add skipif
2011-09-06 06:50:56 +00:00
Pierre Joye
bd0a02b72b
- add skipif
2011-09-06 06:50:56 +00:00
Xinchen Hui
83f61c2c53
Fixed compiler warning "incompatible pointer type"
2011-09-05 15:02:21 +00:00
Xinchen Hui
6a4153db0c
Fixed compiler warning "incompatible pointer type"
2011-09-05 15:02:21 +00:00
Christopher Jones
43e4d8cade
gcov test fixes
2011-09-02 22:19:03 +00:00
Christopher Jones
bfdd2c38d9
gcov test fixes
2011-09-02 22:19:03 +00:00
Christopher Jones
06cc022740
gcov test fixes
2011-09-02 22:19:03 +00:00
Ilia Alshanetsky
42f3972e61
Avoid strcpy() usage
2011-08-08 00:07:54 +00:00
Ilia Alshanetsky
1271828ee4
Avoid strcpy() usage
2011-08-08 00:07:54 +00:00
Ilia Alshanetsky
ebefefeba8
Avoid strcpy() usage
2011-08-08 00:07:54 +00:00
Ilia Alshanetsky
34f08a3715
Fixes for variety of issues identified by coverity scan
2011-08-07 23:46:00 +00:00
Ilia Alshanetsky
9db1c59325
Fixes for variety of issues identified by coverity scan
2011-08-07 23:46:00 +00:00
Ilia Alshanetsky
04d7804aec
Fixes for variety of issues identified by coverity scan
2011-08-07 23:46:00 +00:00
Rasmus Lerdorf
37c18f5ebe
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
...
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf
7eb5bbbf65
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
...
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf
2449c41698
Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat.
2011-08-07 15:45:18 +00:00
Rasmus Lerdorf
ee729585b3
Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat.
2011-08-07 15:45:18 +00:00
Rasmus Lerdorf
bfffb28ebf
Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat.
2011-08-07 15:45:18 +00:00
Felipe Pena
997f323e3a
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
2011-08-06 14:47:44 +00:00
Felipe Pena
707a8f70b8
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
2011-08-06 14:47:44 +00:00
Felipe Pena
9480eace41
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
2011-08-06 14:47:44 +00:00
Felipe Pena
23e438594d
- Make usage of new PHP_FE_END macro
2011-07-25 11:42:53 +00:00
Felipe Pena
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Felipe Pena
da376383e8
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Pierre Joye
9805e1674a
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Pierre Joye
cc1c7af037
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Felipe Pena
bf1779e973
- Added missing arginfos for void params and void param checks
2011-06-18 15:56:14 +00:00
Felipe Pena
ebf9db550f
- Added missing arginfos for void params and void param checks
2011-06-18 15:56:14 +00:00
Felipe Pena
2b309c8f9e
- Added missing arginfos for void params and void param checks
2011-06-18 15:56:14 +00:00
Felipe Pena
087a134b50
- Fixed bug #54929 (Parse error with single quote in sql comment)
2011-06-04 22:54:40 +00:00
Felipe Pena
e1a5443f97
- Fixed bug #54929 (Parse error with single quote in sql comment)
2011-06-04 22:54:40 +00:00
Felipe Pena
b86161982b
- Fixed bug #54929 (Parse error with single quote in sql comment)
2011-06-04 22:54:40 +00:00
Ilia Alshanetsky
83d01bd81b
Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings).
2011-06-01 13:23:25 +00:00
Ilia Alshanetsky
a8b8fe1f7f
Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings).
2011-06-01 13:23:25 +00:00
Ilia Alshanetsky
8083c1ab89
Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings).
2011-06-01 13:23:25 +00:00
Ilia Alshanetsky
f15452af96
Fixed compiler warning
2011-02-22 15:48:25 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Ilia Alshanetsky
73c49036ce
Fixed compiler warning
2010-12-23 14:38:15 +00:00
Gustavo André dos Santos Lopes
9b698dbcea
- Revert of revision 306542, turns out the semantics of compare() are
...
different in SplMinHeap and SplMaxHeap.
2010-12-21 19:52:17 +00:00
Pierre Joye
aea6771d19
- add phpize support for windows, need a nmake install for now (nmake devel-pkg version is coming), works exactly the same as on unix, or should :)
2010-12-13 18:43:10 +00:00
Pierre Joye
a7ffa09e18
- add PHP_INSTALL_HEADERS to all parts (core&exts) exposing headers, generate the install-headers cmd
2010-12-11 22:18:10 +00:00
Eyal Teutsch
30d290a31e
pdo_025 expected a certain extra character that is not part of windows output. changed to optional char: %a -> %A
2010-12-09 12:04:18 +00:00
Eyal Teutsch
4e37118801
pdo_025 expected a certain extra character that is not part of windows output. changed to optional char: %a -> %A
2010-12-09 12:04:18 +00:00
Felipe Pena
0f53b4e515
- Fixed tests
2010-12-04 12:28:23 +00:00
Felipe Pena
57fc653c05
- Fixed tests
2010-12-04 12:28:23 +00:00
Felipe Pena
76ba9b44b4
- Fixed test
2010-12-03 23:25:27 +00:00
Felipe Pena
11a3a52fc8
- Fixed test
2010-12-03 23:25:27 +00:00
Felipe Pena
3dc4f14c6b
- Fixed test
2010-12-03 22:58:21 +00:00
Felipe Pena
955ebdf10c
- Fixed test
2010-12-03 22:58:21 +00:00
Felipe Pena
3cace9cbcc
- Fix wrong argument to read_property call
2010-11-15 18:48:48 +00:00
Felipe Pena
e6de920a27
- Fix wrong argument to read_property call
2010-11-15 18:48:48 +00:00
Ulf Wendel
1c9e784985
Skip if PDO_SQLITE is not available
2010-09-17 17:11:21 +00:00
Ulf Wendel
2d656381f8
Skip if PDO_SQLITE is not available
2010-09-17 17:11:21 +00:00
Ulf Wendel
d67c72668f
Remove OS dependent directory separator from EXPECT
2010-09-17 16:40:02 +00:00
Ulf Wendel
fe726b1beb
Remove OS dependent directory separator from EXPECT
2010-09-17 16:40:02 +00:00
Dmitry Stogov
f2df6a4a3e
- Improved memory usage
...
. zend_function.pass_rest_by_reference is replaced by
ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags
. zend_function.return_reference is replaced by ZEND_ACC_RETURN_REFERENCE
in zend_function.fn_flags
. zend_arg_info.required_num_args removed. it was needed only for internal
functions. Now the first arg_info for internal function (which has special
meaning) is represented by zend_internal_function_info structure.
. zend_op_array.size, size_var, size_literal, current_brk_cont,
backpatch_count moved into CG(context), because they are used only during
compilation.
. zend_op_array.start_op is moved into EG(start_op), because it's used
only for 'interactive' execution of single top-level op-array.
. zend_op_array.done_pass_two is replaced by ZEND_ACC_DONE_PASS_TWO in
zend_op_array.fn_flags.
. op_array.vars array is trimmed (reallocated) during pass_two.
. zend_class_entry.constants_updated is replaced by
ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags
. the size of zend_class_entry is reduced by sharing the same memory space
by different information for internal and user classes.
See zend_class_inttry.info union.
2010-09-15 07:38:52 +00:00
Felipe Pena
8fba11c57b
- Fixed bug #52699 (PDO bindValue writes long int 32bit enum)
2010-08-25 22:03:03 +00:00
Felipe Pena
cbe9f57a17
- Fixed bug #52699 (PDO bindValue writes long int 32bit enum)
2010-08-25 22:03:03 +00:00
Felipe Pena
7b9fe96774
- Fixed bug #52487 (PDO::FETCH_INTO leaks memory)
2010-07-29 23:38:55 +00:00
Felipe Pena
e3ddef53b4
- Fixed bug #52487 (PDO::FETCH_INTO leaks memory)
2010-07-29 23:38:55 +00:00
Kalle Sommer Nielsen
e71ee33358
Fixed bug #51943 (Several files are out of ANSI spec)
...
# Based on patch by CoreyStup at gmail dot com
2010-07-13 23:59:54 +00:00
Kalle Sommer Nielsen
aeb1dc7cc4
Fixed bug #51943 (Several files are out of ANSI spec)
...
# Based on patch by CoreyStup at gmail dot com
2010-07-13 23:59:54 +00:00
Felipe Pena
13b692e4c9
- New tests related to #52098
2010-06-16 23:33:01 +00:00
Felipe Pena
42c4bafbbd
- New tests related to #52098
2010-06-16 23:33:01 +00:00
Felipe Pena
a7210008db
- Fix crash when calling a method of a class that inherits PDOStatement if instantiated directly
2010-06-16 23:13:29 +00:00
Felipe Pena
d596ea742a
- Fix crash when calling a method of a class that inherits PDOStatement if instantiated directly
2010-06-16 23:13:29 +00:00
Ilia Alshanetsky
24b8bc3489
Removed the in_transaction handler for 5.3 to avoid BC break due to structure change
2010-06-15 11:13:20 +00:00
Ilia Alshanetsky
90906a91e9
Added inTransaction() method to PDO, with specialized support for Postgres
2010-06-10 12:11:19 +00:00
Ilia Alshanetsky
6ed1819bf4
Added inTransaction() method to PDO, with specialized support for Postgres
2010-06-10 12:11:19 +00:00
Felipe Pena
9f67894c6f
- Removed clone_obj from PDORow object handlers, as zend_objects_store_clone_obj requires a clone handler (ce->clone == NULL -> error) and it is not supplied, hence it is being useless and leading ReflectionClass::isCloneable() to give false positive information
2010-06-02 16:54:13 +00:00
Dmitry Stogov
c5237d82bf
Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties
2010-05-24 14:11:39 +00:00
Derick Rethans
2bc3611c74
- Fixed name.
2010-05-19 20:20:10 +00:00
Dmitry Stogov
77b2e54658
Fixed PDO objects binary incompatibility
2010-05-06 08:37:41 +00:00
Pierrick Charron
8f128b2b13
Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset
2010-04-27 05:56:56 +00:00
Pierrick Charron
1892d92d68
Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset
2010-04-27 05:56:56 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Dmitry Stogov
94dd83722b
Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table
2010-04-20 10:57:45 +00:00
Ilia Alshanetsky
e670a3f9fd
On beginTransaction() reset error state
2010-04-01 12:08:55 +00:00
Ilia Alshanetsky
c2e16d3c5b
On beginTransaction() reset error state
2010-04-01 12:08:55 +00:00
Johannes Schlüter
ed03634a8c
Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling
...
constructor)
2010-02-11 22:14:06 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Sebastian Bergmann
ebb467ff02
sed -i "s#1997-2009#1997-2010#g" **/*.re **/*.y **/*.l
2010-01-03 08:22:14 +00:00
Matteo Beccati
9326c7e3a2
- Updated pdo_pgsql tests to be 8.5+ friendly
2009-12-25 20:11:07 +00:00
Felipe Pena
286f36e702
- Fixed memory leak when E_STRICT message is getted
2009-12-14 21:44:56 +00:00
Pierrick Charron
7d4643193d
- Fixed bug #50458 (PDO::FETCH_FUNC fails with Closures)
2009-12-14 03:44:33 +00:00
Felipe Pena
93a406ac9c
- Fixed bug #49174 (crash on queryString set)
2009-12-13 19:53:44 +00:00
Felipe Pena
5eae703705
- Fixed bug #50445 (PDO-ODBC stored procedure call from Solaris 64-bit causes seg fault).
...
(Original patch by davbrown4 at yahoo dot com)
2009-12-11 22:30:46 +00:00
Felipe Pena
a94558c855
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
2009-12-08 01:57:37 +00:00
Pierrick Charron
99ba48dc60
Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN even in the middle of a string).
2009-12-06 21:32:58 +00:00
Ilia Alshanetsky
bf550fe8da
Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN).
2009-12-06 19:34:12 +00:00
Pierrick Charron
e2efe4bc7b
Fixed bug #45120 (PDOStatement->execute() returns true then false for same statement).
2009-12-03 15:24:43 +00:00
Ilia Alshanetsky
51c17c413c
Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type
2009-11-20 18:54:08 +00:00
Felipe Pena
4bafbf58f8
- Fixed bug #49521 (PDO fetchObject sets values before calling constructor)
...
(patch by Pierrick)
2009-11-15 16:20:37 +00:00
Felipe Pena
b394a75ad5
- Fixed PDORow and PDOStatement crashes when instantiating throught Reflection
2009-10-12 17:09:11 +00:00
Felipe Pena
9f8ff2f968
- Revert my mistake
2009-07-19 22:46:03 +00:00
Felipe Pena
a0e5576f23
- Fixed module check (Related to bug #48785 )
2009-07-19 20:53:26 +00:00
Felipe Pena
2adf42f890
- Removed trailing zeros on double to string conversion (noticed on #48924 )
2009-07-16 00:59:34 +00:00
Matteo Beccati
c25b0a2817
MFH
...
- Moved test for bug #44861 to PDO commons and added support for pdo_oci
# This allows scrollable cursors to be tested with all the drivers
# that currently support them (pgsql and oci), ensuring a consistent
# behaviour. The test is skipped when using other drivers.
2009-05-12 23:40:32 +00:00
Kalle Sommer Nielsen
d8f43d476e
MFH: Fix proto
2009-05-02 01:37:33 +00:00
Matteo Beccati
0b576f6f11
MFH:
...
- Reverted previous fix for bug #46274 and properly fixed it
- Fixed bug #48060
# Also added tests for pdo_oci as it's the only other driver currently
# using streams: no regression found
2009-04-23 13:26:10 +00:00
Matteo Beccati
90fb825ad4
MFH:
...
- Fixed bug #44173 (PDO->query() parameter parsing/checking needs an
update)
# The changeset is longer than really needed because pdo_stmt.c was
# refactored to remove the "goto"
2009-04-02 16:41:23 +00:00
Felipe Pena
d2ca66893e
- Fix typo
2009-03-26 13:55:06 +00:00
Felipe Pena
d7c4a27376
MFH: - Fixed bug #47769 (Strange extends PDO)
2009-03-26 12:53:39 +00:00
Felipe Pena
861d51223f
MFH:
...
- Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct())
Patch by: matteo at beccati dot com
2009-03-23 23:15:03 +00:00
Andrei Zmievski
cc34210c32
MFH
2009-03-12 16:13:17 +00:00
Johannes Schlüter
162aed0aed
MFH: Fix #46542 Extending PDO class with a __call() function doesn't work
...
as expected
2009-02-17 14:42:26 +00:00
Felipe Pena
b66f9c0a87
- Missing "DROP TABLE"
2009-02-16 19:48:56 +00:00
Felipe Pena
d01257ffd9
- Added missing void param check and arginfo
2009-02-13 12:55:38 +00:00
Felipe Pena
f0a96595d0
MFH:
...
- Fixed bug #43831 ($this gets mangled when extending PDO with persistent connection)
- Fixed bug #45432 (PDO: persistent connection leak)
2009-02-13 02:18:57 +00:00
Felipe Pena
d33be91e72
- MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
...
Patch by matteo at beccati dot com
2009-02-04 16:40:56 +00:00
Antony Dovgal
9b9cd5421d
create temporary db in the current dir and cleanup on completion
2009-01-05 16:02:04 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Sebastian Bergmann
3c1ed020c7
MFH: Bump copyright year, 2 of 3.
2008-12-31 11:13:54 +00:00
Nuno Lopes
f2f7ed4987
we do not need the strndup() now that php_stream_printf() handles non-null terminated strings correctly
2008-12-12 23:46:05 +00:00
Ilia Alshanetsky
0594dd91d3
Fixed a possible corruption inside PDOStatement::debugDumpParams()
2008-12-11 15:32:24 +00:00
Antony Dovgal
b9653b8358
MFH
2008-12-03 10:18:42 +00:00
Matt Wilmas
fafa7f2709
Fixed error message typo
2008-12-03 00:10:17 +00:00
Dmitry Stogov
7d4fd3fd38
Fixed bug #46409 (__invoke method called outside of object context when using array_map)
2008-11-27 19:01:23 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Felipe Pena
c29ebd8a23
- MFH: Better fix
2008-11-13 18:14:50 +00:00
Pierre Joye
c8103324bf
- MFH: declaration goes first...
2008-11-13 14:40:06 +00:00
Felipe Pena
494dbdb1c1
- MFH: Fixed invalid reads
2008-11-13 13:08:12 +00:00
David Coallier
9334bbd650
- After readying Johannes's mail, the conclusion that a "smarter" system
...
to find out if the return_value had the correct number of elements was
definitely needed. Simply added a difference to both dbh and stmt to
make sure that the error info always has 3 elements.
- Bug #44154 (pdo->errorInfo doesn't always return three elements)
- Now pdo->errorInfo() AND stmt->errorInfo() return three elements.
- [DOC] Make sure that not only the pdo->errorInfo() is returning 3 elms, but
also the PDOStatement object
2008-11-10 18:47:28 +00:00
Felipe Pena
a912d80adb
MFH:
...
- Fixed wrong check
- Improved test
2008-11-05 23:40:38 +00:00
David Coallier
80e3ed5630
- MFH
...
- Bug #44154 : [DOC] Return 3 elements at all times. If the dbh stmt doesn't have
an error code we used to return an array with one element. For the sake
of consistency and verification of returned values at userland we are now
returning an array with 3 elements. Note the two last elements are null but
present
- Bug #4413 : [DOC] If the error code returned by the DBH is null, we return
a null value. This is used in order to help with empty error codes.
2008-11-04 18:28:41 +00:00
Felipe Pena
a5e72fd696
- MFH: Improved fix
2008-11-03 23:44:38 +00:00
Felipe Pena
27965c932f
MFH:
...
- Fixed endless loop in PDOStatement::debugDumpParams()
patch by: Jonah H. Harris <jonah.harris at gmail dot com>
2008-11-03 20:48:51 +00:00
Felipe Pena
e0fededeba
- MFH: Fixed bug #44327 (PDORow::queryString property & numeric offsets / Crash)
2008-11-03 15:33:23 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Felipe Pena
981a23fff3
- MFH: Fixed bug #43925 (Incorrect argument counter in prepared statements with pgsql)
2008-10-23 18:53:05 +00:00
Felipe Pena
84be2eb47b
- MFH: Fixed bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE)
2008-10-14 17:36:02 +00:00
Felipe Pena
e90d487720
- Removed unnecessary strcmp call (thanks Tony)
2008-10-12 13:46:10 +00:00
Felipe Pena
d2d4e044c7
- Complete the fix for #46274 , and tests
2008-10-12 13:01:31 +00:00
Kalle Sommer Nielsen
0c183be27f
MFH:
...
Add missing zend_parse_paramters_none() in pdo_drivers()
2008-10-10 23:38:14 +00:00
Felipe Pena
86f0b45ef8
- MFH: Static'fication
2008-10-10 19:35:34 +00:00
Felipe Pena
a3c8772fd1
MFH:
...
- Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE)
Initial patch by: chsc at peytz dot dk
2008-10-10 16:47:15 +00:00
Felipe Pena
1f54af9245
MFH:
...
- Fixed bug #44251 (Question mark and an escaped singel quote lead to an exception)
- Fixed bug #41125 (PDO mysql + quote() + prepare() can result in seg fault)
Patch by: tsteiner at nerdclub dot net
2008-10-10 12:10:41 +00:00
Felipe Pena
8d03c0de19
- MFH: Fixed bug pecl#9641 (Unable to add driver specific methods to PDOStatement) (patch by Christopher Jones)
2008-10-09 13:00:58 +00:00
Felipe Pena
6bc9869ad9
- MFH: Fixed bug #46157 (PDOStatement::fetchObject prototype error)
2008-09-23 23:07:52 +00:00
Johannes Schlüter
2c98da2d17
MFH Fix #44425 (Extending PDO/MySQL class with a __call() function doesn't work)
2008-09-16 23:35:50 +00:00
Felipe Pena
cf7384aa40
- MFH: Constness (Added const qualifier to several function parameters)
2008-08-12 17:20:25 +00:00
Felipe Pena
e304515ddb
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:46:07 +00:00
Jani Taskinen
281352fe02
MFH: Fix PDO configure dependancy: If --disable-pdo is used, disable all
...
MFH: enabled-by-default drivers. Also error out if you try to configure
MFH: a driver as static but pdo is disabled.
2008-07-25 13:46:24 +00:00
Dmitry Stogov
ac68c41f8d
Fixed support for static methods
2008-07-25 09:44:47 +00:00
Antony Dovgal
a46319d86d
fix typos
2008-07-25 08:45:09 +00:00
Dmitry Stogov
691d4a6999
Fixed uninitialised data
2008-07-25 08:23:07 +00:00
Pierre Joye
246d836a28
- MFH: force static for now, broken now
2008-07-24 16:05:34 +00:00
Johannes Schlüter
be0793d2e7
MFH: Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499,
...
pecl#12794, pecl#12401
# Running the tests:
# (Note: Doesn't work currnetly on HEAD, see:
# http://news.php.net/php.qa/64378 )
#
# PDO_MYSQL_TEST_DSN - DSN
# For example: mysql:dbname=test;host=localhost;port=3306
#
# PDO_MYSQL_TEST_HOST - database host
# PDO_MYSQL_TEST_DB - database (schema) name
# PDO_MYSQL_TEST_SOCKET - database server socket
# PDO_MYSQL_TEST_ENGINE - storage engine to use
# PDO_MYSQL_TEST_USER - database user
# PDO_MYSQL_TEST_PASS - database user password
# PDO_MYSQL_TEST_CHARSET - database charset
#
# NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is
# part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example,
# for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.
2008-07-21 13:09:28 +00:00
Felipe Pena
cb0d08699d
- Added arginfo
2008-06-27 19:16:17 +00:00
Felipe Pena
f6cc283d46
- MFH: Add check for avoid segfault when trying instantiate PDORow manually
2008-05-14 12:32:21 +00:00
Ilia Alshanetsky
3bcf8a3d00
Added a warning message on pdo::exec() failure in the event of an empty query
2008-04-22 13:01:45 +00:00
Nuno Lopes
8dc8b63cca
fix SKIPIFs
...
# Patch by Christian Hoffmann
2008-04-10 18:50:42 +00:00
Antony Dovgal
57f51ee9a4
remove ze1_compat leftovers
2008-03-18 14:44:35 +00:00
Nuno Lopes
25e6cd1a38
remove duplicated sections
2008-03-17 17:19:48 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Ilia Alshanetsky
1a3f7f6450
Fixed bug #44166 (Parameter handling flaw in PDO::getAvailableDrivers())
2008-03-03 21:12:16 +00:00
Johannes Schlüter
1aa32afa8a
MFH: Fix get_parent_class() of PDORow instances
2008-03-03 19:00:45 +00:00
Ilia Alshanetsky
43bcf759d3
Better fix for bug #44189
2008-02-26 00:13:57 +00:00
Ilia Alshanetsky
e0388c5549
Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
...
bound parameters are present)
2008-02-24 16:08:32 +00:00
Felipe Pena
31ba224d90
Fix test
2008-02-22 02:15:42 +00:00
Ilia Alshanetsky
2fc9f5928e
Fixed bug #44189 (PDO setAttribute() does not properly validate values for
...
native numeric options)
2008-02-21 13:37:21 +00:00
Ilia Alshanetsky
3101edfd18
Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error)
2008-02-20 03:11:43 +00:00
Felipe Pena
eaed933e57
New test
2008-02-19 14:53:04 +00:00
Nuno Lopes
083f474a47
some BDs (e.g. firebird) dont support text, so replace it with varchar(255).
2008-02-19 14:46:20 +00:00
Felipe Pena
6e712e05ab
MFB: Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL))
2008-02-19 12:13:20 +00:00
Ilia Alshanetsky
353d1ea039
PDO is hardly experimental
2008-01-31 20:50:27 +00:00
Dmitry Stogov
240fa244c3
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
2008-01-30 09:41:12 +00:00
Nuno Lopes
b89396b11e
move about 3K of data to the const area. also reduce memory usage (~ -266 bytes :P)
2008-01-25 19:57:57 +00:00
Ilia Alshanetsky
40dc00410d
Missing patch bit from the FETCH_GROUP fix
2008-01-14 18:41:31 +00:00
Ilia Alshanetsky
fa1e1d249b
Fixed a bug with PDO::FETCH_COLUMN|PDO::FETCH_GROUP mode when a column # by
...
which to group by data is specified.
2008-01-11 01:47:18 +00:00
Ilia Alshanetsky
a4674c5ed7
Skip test for PostgreSQL driver since error is too dissimilar to other
...
drivers
2008-01-03 16:46:52 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Sebastian Bergmann
f8a8196d63
MFH: Bump copyright year, 1 of 2.
2007-12-31 07:15:43 +00:00
David Soria Parra
07487ad0e7
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
...
CVS
2007-12-30 17:51:35 +00:00
Antony Dovgal
2b856ff3c7
fix test
2007-11-27 11:14:33 +00:00
Antony Dovgal
da231136ce
fix test
2007-11-27 06:44:16 +00:00
Ilia Alshanetsky
0c0456d275
Revert addition of - char support for bound param names
2007-11-26 21:09:50 +00:00
Jani Taskinen
dcd3b197e7
MFH:- Fixed bug #43365 (Several enums have trailing commas)
2007-11-26 10:59:04 +00:00
Ilia Alshanetsky
204f9e1a74
Adjusted fix for bug #42978
2007-11-20 23:12:17 +00:00
Ilia Alshanetsky
48878f2ecd
Fixed bug #42978 (mismatch between number of bound params and values causes
...
a crash in pdo_pgsql)
2007-11-20 14:22:27 +00:00
Antony Dovgal
379e8a5970
fix test
2007-11-08 12:40:43 +00:00
Ilia Alshanetsky
d689a10f3a
Fixed test
2007-11-04 16:12:13 +00:00
Ilia Alshanetsky
548c25ef1c
Fixed bug #43139 PDO ignores ATTR_DEFAULT_FETCH_MODE in some cases with fetchAll()
2007-10-31 12:57:51 +00:00
Ilia Alshanetsky
84f0fba1a5
Test not relavent for sqlite that uses built-in bound syntax
2007-10-30 23:03:23 +00:00
Ilia Alshanetsky
c27a8a41c2
Fixed bug #43130 (Bound parameters cannot have - in their name)
2007-10-29 22:36:26 +00:00
Ilia Alshanetsky
3762dfc09f
Fixed bug #42917 (PDO::FETCH_KEY_PAIR doesn't work with setFetchMode)
2007-10-11 20:54:41 +00:00
Yiduo (David) Wang
104290130e
MFH: stmt->fetch.func.values is not a zval and should not be freed with FREE_ZVAL
2007-10-08 04:06:15 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Stanislav Malyshev
1f45d49a0c
fix crash if stream is empty and reader function sets buffer as null
2007-09-12 21:21:18 +00:00
Ilia Alshanetsky
910850be51
Fixed bug #42643 (CLI segfaults if using ATTR_PERSISTENT).
2007-09-12 18:26:49 +00:00
Hannes Magnusson
2fc92c9172
- Fixed bug #42452 (PDO classes do not expose Reflection API information)
...
- Fixed tests
2007-08-30 14:06:12 +00:00
Ilia Alshanetsky
c72d39f763
Fixed bug #41971 (PDOStatement::fetch and PDOStatement::setFetchMode causes
...
unexpected behavior).
2007-07-31 22:48:42 +00:00
Ilia Alshanetsky
2600cf9c20
Already exists in PECL
2007-07-25 22:26:14 +00:00
Dmitry Stogov
7ec48cb37f
Fixed bug #40757 (get_object_vars get nothing in child class)
...
Fixed bug #41929 (Foreach on object does not iterate over all visible properties)
2007-07-24 11:39:56 +00:00
Antony Dovgal
fe25997d44
fix test
2007-07-23 22:46:03 +00:00
Jani Taskinen
5b71d45eff
MFH: sync
2007-07-23 11:53:58 +00:00
Ilia Alshanetsky
20c4198341
Added test for KEY_PAIR code and fixed KEY_PAIR detection code
2007-07-22 15:50:17 +00:00
Ilia Alshanetsky
285316fcff
Fixed PDO_FETCH_KEY_PAIR implementation for fetchAll()
2007-07-22 15:14:21 +00:00
Ilia Alshanetsky
39c1705848
Fixed a possible crash inside the constructor
2007-07-16 18:00:18 +00:00
Ilia Alshanetsky
d34bfe5c37
When working with persistent connections re-initialize options on each
...
connection. Flags like error reporting may differ.
2007-06-28 19:22:52 +00:00
Ilia Alshanetsky
37d1bfed25
Added support for ATTR_TIMEOUT inside pdo_pgsql driver.
...
Fixed a bug inside PDO's "use persistent" connection detection mechanism
that would trigger connections on "" and "0" values
2007-06-28 03:13:29 +00:00
Ilia Alshanetsky
abffe87d42
Fixed a crash inside PDO when there is more then one instance of a
...
persistent connection inside a script and PDO object is extended by class
with a destructor
2007-06-27 02:02:18 +00:00
Ilia Alshanetsky
dc1c6f74c8
Fixed bug #41698 (float parameters truncated to integer in prepared
...
statements).
2007-06-26 01:24:10 +00:00
Ilia Alshanetsky
c084d1c829
Fixed bug #41596 (Fixed a crash inside pdo_pgsql on some non-well-formed
...
SQL queries).
2007-06-05 22:55:27 +00:00
Ilia Alshanetsky
489c2d739a
Fixed test for PostgreSQL
2007-06-03 17:41:21 +00:00
Ilia Alshanetsky
2a6442190c
Fixed test to work with postgresql
2007-05-19 15:28:37 +00:00
Hannes Magnusson
4ad45f6566
Fix paths for ext/sqlite
2007-05-17 13:40:12 +00:00
Ilia Alshanetsky
67032ecdf0
Make test work in sqlite
2007-05-16 21:03:46 +00:00