Xinchen Hui
6a4153db0c
Fixed compiler warning "incompatible pointer type"
2011-09-05 15:02:21 +00:00
Ilia Alshanetsky
9db1c59325
Fixes for variety of issues identified by coverity scan
2011-08-07 23:46:00 +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
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17: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
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
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
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +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
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
Kalle Sommer Nielsen
0c183be27f
MFH:
...
Add missing zend_parse_paramters_none() in pdo_drivers()
2008-10-10 23:38:14 +00:00
Felipe Pena
cb0d08699d
- Added arginfo
2008-06-27 19:16:17 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +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
Jani Taskinen
5b71d45eff
MFH: sync
2007-07-23 11:53:58 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Hannes Magnusson
8104df0547
Remove bogus ini entry
2006-10-14 15:06:11 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
Rasmus Lerdorf
76bff5194c
Put the TODO back
2006-06-07 21:14:04 +00:00
Rasmus Lerdorf
658762a0b5
Get rid of useless function calls
2006-06-07 21:09:52 +00:00
Antony Dovgal
1b602e85d1
fix leak appearing on phpinfo() when there are no PDO modules available
2006-06-05 22:08:16 +00:00
Marcus Boerger
7bbab02633
- MFH
...
. Fix iterator based access
. Add new attribute ATTR_DEFAULT_FETCH_MODE: $bdh->setAttribute()
. Add new fetch mode: FETCH_PROPS_LATE, this fills object member
variables after calling the constructor (fixes #36428 ).
2006-05-11 22:43:44 +00:00
Marcus Boerger
11f26c2c2a
- Tweak version check
2006-05-09 23:54:48 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Wez Furlong
17683295e4
switch to package2.xml
2005-12-04 22:34:26 +00:00
Wez Furlong
b15e33f85a
prep for release
2005-11-28 06:39:53 +00:00
Wez Furlong
ab6a675131
going to release 1.0.1
2005-11-26 21:22:49 +00:00
Wez Furlong
85ad81736c
set to 1.0 stable.
2005-11-26 20:50:08 +00:00
foobar
366832fbd2
MFH: Fixed wrong usage of ZEND_EXTENSION_API_NO (these are not Zend exts :)
2005-11-25 16:01:41 +00:00
Antony Dovgal
b33c2d9b17
nuke unused variable
2005-10-05 22:17:38 +00:00
Derick Rethans
3abc925a8a
- Committing some changes that make PDO+SPL not crash anymore. These are done
...
by Marcus. and I'm committing them in order to actually use PHP 5.1 without
segfaulting when apache starts. This is not necessary the best solution.
2005-10-05 13:51:46 +00:00
Marcus Boerger
991a29cfd6
- MFH PDOException base
2005-10-02 20:38:18 +00:00
Ilia Alshanetsky
bfe844e41e
MFH: Make PDO use class constants
2005-09-20 00:35:21 +00:00
Antony Dovgal
9a1c6c55b8
fix build (declare extern HashTable pdo_driver_hash)
2005-09-18 18:05:59 +00:00
Wez Furlong
7e762989e7
move pdo_drivers -> PDO::getAvailableDrivers as part of namespacing sweep.
2005-09-18 14:13:08 +00:00
Wez Furlong
9e9f413aeb
Fix PECL Bug #5010
2005-09-11 19:44:26 +00:00
Wez Furlong
77d3a41f8a
update package.xml files and version numbers, in anticipation of a big bunch of releases.
2005-09-11 05:27:30 +00:00
Wez Furlong
1e37cc7b82
set version numbers to 1.0
2005-09-11 05:06:30 +00:00
Wez Furlong
e9c81e4983
actually register PDO_PARAM_BOOL as a constant (doh!).
...
When emulating bound parameters, pass booleans via the driver's quoter
method, so that is has an opportunity to tweak it.
Refs #33876 : PDO misquotes/miscasts bool(false)
2005-09-10 20:58:19 +00:00
Wez Furlong
163c92510a
Prep for PECL release
2005-07-27 02:39:46 +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
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
49c1882837
Add a PDO_ATTR_STRINGIFY_FETCHES attribute, which is used to convert integer or
...
floating point values into strings during fetch. This is a compatibility hack
for drivers that return native types rather than string representations.
We use this flag in the test suite to persuade postgres tests to pass.
2005-07-08 04:13:00 +00:00
Wez Furlong
da7d537d49
populate the new dbh->driver field.
...
Implement PDO_ATTR_DRIVER_NAME.
2005-07-07 17:08:01 +00:00
Wez Furlong
d4a158260b
Add PDO_FETCH_NAMED; closes PECL #4641 by providing a way to access columns
...
by name, even when multiple columns have the same name:
$sql = "SELECT 1 a, 2 a, 3 b, 4 c, 5 d, 6 c, 7 a";
echo "$sql\n";
print_r($db->query($sql)->fetchAll(PDO_FETCH_NAMED));
Array
(
[0] => Array
(
[a] => Array
(
[0] => 1
[1] => 2
[2] => 7
)
[b] => 3
[c] => Array
(
[0] => 4
[1] => 6
)
[d] => 5
)
)
Also added two new attributes for use at prepare time;
PDO_ATTR_FETCH_TABLE_NAMES and PDO_ATTR_FETCH_CATALOG_NAMES instruct the driver
that the names of the columns that they return to PDO should include the table
and catalog names respectively. Both attributes may be used together or
independently. The catalog, table and column name components should be
separated by a . character.
2005-07-03 03:49:44 +00:00