1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Commit Graph

15828 Commits

Author SHA1 Message Date
Marcus Boerger d3c337e59d - Tweak tests a bit 2005-07-03 09:10:41 +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
Wez Furlong 75cfa5c2e0 probable fix for PECL bug #4546 2005-07-03 03:04:13 +00:00
Wez Furlong d7e5dfb2de Enable native mysql 4.1.x prepared statement support
# the hardest part was installing 4.1.x on a gentoo box over a 56k modem
2005-07-03 02:20:08 +00:00
Edin Kadribasic 9ac84b2f1a Don't crash on exit by destroying the same hash twice 2005-07-02 22:48:06 +00:00
Derick Rethans 2b47899981 - Overhauled selecting the correct timezone. The timezone set with
"date_timezone_set" override the TZ environment variable, which on its turn
  overrides the date.timezone setting. If none of the three is set, we fallback
  to UTC.
- Added "date_timezone_set" function to set the timezone that the date
  functions will use.
2005-07-02 21:19:25 +00:00
Wez Furlong 1bbab25455 Experimental support for queries returning multiple rowsets under mysql 5.0.
Patch from Guy Harrison (guy dot a dot harrison (at) gmail dot com)
2005-07-02 21:01:38 +00:00
Ilia Alshanetsky 6fd9e5a64f Fixed memory leak on PDO_FETCH_OBJ. 2005-07-02 17:19:58 +00:00
Edin Kadribasic 00855fcc34 Add sqlstates defined in PostgreSQL documentation.
Source: http://www.postgresql.org/docs/8.0/static/errcodes-appendix.html
2005-07-01 23:32:39 +00:00
Edin Kadribasic f05de12fcf Only check for InvalidOid when not looking up a sequence 2005-07-01 22:43:16 +00:00
Edin Kadribasic 7ef1a91508 Fold PQresultErrorField() into a macro 2005-07-01 22:30:55 +00:00
Edin Kadribasic 5d65789877 Added class 55 sqlstates 2005-07-01 22:12:00 +00:00
Edin Kadribasic 1a10666b08 Added support for fetching current value of a sequence when the
optional sequence name has been passed to PDO::lastInsertId()
2005-07-01 21:54:50 +00:00
Edin Kadribasic e70b3a94f4 Use timelib types.
(Fixes compilation on older Microsoft compilers)
2005-07-01 08:59:57 +00:00
Derick Rethans e6820914ff - parse_date.c is a generated file, updated parse_date.re and regenerated
parse_date.c.
2005-07-01 07:18:43 +00:00
Anantha Kesari H Y 98a2eeacc7 As fork implementation of NetWare LibC still in experimental stages making the procve based solution ahead of HAVE_FORK. Later When fork becomes stable will revert this fix.
--Kamesh from hyanantha's account
2005-07-01 06:49:29 +00:00
Ilia Alshanetsky eab2cdedd3 Fixed memory leak. 2005-06-30 23:33:37 +00:00
Frank M. Kromann 4ae7321f3e Fix Win32 build 2005-06-30 23:03:36 +00:00
Frank M. Kromann 6833acff23 Fix ZTS build 2005-06-30 22:49:47 +00:00
Ilia Alshanetsky f7fe18dde4 Fixed compiler warnings. 2005-06-30 22:47:39 +00:00
Ilia Alshanetsky 7575ef4778 Fixed memory leak on error inside php_date(). 2005-06-30 22:44:28 +00:00
Ilia Alshanetsky 138b4435dd Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). 2005-06-30 22:29:36 +00:00
Derick Rethans e155585e6e - Reimplemented date and gmdate with new timelib code.
- Removed old date/gmdate implementations.
- Moved date() related testcases to ext/date/tests.
- Implemented bug #33452.
- Fixed testcase for bug #27719 - there is no timezone called "EST5DST".
2005-06-30 21:38:06 +00:00
Ilia Alshanetsky 2e79463120 Release news 2005-06-30 21:13:34 +00:00
Ilia Alshanetsky e614839111 touch generated file. 2005-06-30 20:59:21 +00:00
Ilia Alshanetsky 7d02c9dcb2 Upgraded bundled sqlite lib to 3.2.2 2005-06-30 20:58:36 +00:00
Wez Furlong efc6ccaa01 Add optional parameter to openssl_pkcs7_verify() which specifies the name
of a file that will be filled with the verified data, but with the signature
information stripped.

Patch by Marton Kenyeres, mkenyeres (at) konvergencia dot hu
2005-06-30 14:25:41 +00:00
foobar 07862d7218 consistent naming: prefix always with MYSQL_ 2005-06-30 14:15:51 +00:00
foobar 6cea418c31 Netware also uses autoconf based config now 2005-06-30 14:11:13 +00:00
Dmitry Stogov 2ca2dc0b08 Restored old behavior of zend_statup_module() 2005-06-30 13:43:00 +00:00
foobar 9518bae116 typo 2005-06-30 13:39:42 +00:00
foobar 340bcffdf0 - Unify (+ spl can't be build shared so COMPILE_DL_SPL 2005-06-30 11:15:00 +00:00
Derick Rethans 384c52faee - Added check for makedev systemcall, which Netware doesn't support. 2005-06-30 10:03:36 +00:00
Derick Rethans 33218e6b24 - Make the Netware guys happy by removing the config.nw.h define. 2005-06-30 06:40:57 +00:00
Ilia Alshanetsky 613d30f215 Silence warnings. 2005-06-30 00:07:42 +00:00
Derick Rethans e4860af785 - Reorganize headers, and update TODO. 2005-06-29 19:08:26 +00:00
Derick Rethans e7de7ff9e2 - Added support for negative timestamps with the @<number> format. (Patch by
Nuno Lopes)
2005-06-29 19:07:06 +00:00
Derick Rethans aa202a7e93 - Make sure the already set "TZ" environment doesn't mess up the tests. 2005-06-29 19:00:35 +00:00
Ilia Alshanetsky 21e17d7ec0 Final (i hope) set of magic.h detection fixes. 2005-06-29 15:57:16 +00:00
Ilia Alshanetsky 7022fbae55 More reliable library detection.
# Thanks Jani
2005-06-29 13:53:59 +00:00
Antony Dovgal f4667ee268 fix test 2005-06-29 11:52:18 +00:00
Johannes Schlüter 44c021d851 - Fix TSRM build 2005-06-29 09:28:44 +00:00
foobar fa6c536c26 fix tests when error_reporting is E_ALL 2005-06-28 23:33:42 +00:00
foobar a66eb331f0 - Regenerated with re2c 0.9.8 2005-06-28 23:16:49 +00:00
Derick Rethans a8949a5f0e - Added testcases for bug #14561 and #26090 and updated NEWS with those
fixed bug nr's.
2005-06-28 21:49:35 +00:00
foobar 0cf082db67 - Fixed bug #33469 also for shared builds 2005-06-28 21:47:30 +00:00
Derick Rethans 7e58c96022 - Fixed bug #33415 and added test cases for #33414 and #33415. 2005-06-28 21:37:36 +00:00
Derick Rethans dcca4db029 - Fixed bug #33433 (strtoll not available on Tru64). 2005-06-28 18:05:59 +00:00
Derick Rethans 28e76fe7f4 - Implemented binary search for timezone abbreviations and timezone identifier
lookups. (Based on a patch by Nuno Lopes)
2005-06-28 17:56:47 +00:00
Ilia Alshanetsky 8c0dc5e887 Make exec() return FALSE on error as do other drivers. 2005-06-28 14:54:44 +00:00