Commit Graph

30868 Commits

Author SHA1 Message Date
Derick Rethans
6ba4559b51 - Added testcase for bug #33563 which is already fixed. 2005-07-04 12:41:20 +00:00
foobar
498c2c7f3b UTC is better 2005-07-04 12:41:00 +00:00
Dmitry Stogov
1d33a3e95e Fixed bug #31158 (array_splice on $GLOBALS crashes) 2005-07-04 10:01:10 +00:00
foobar
43210250ea fix test 2005-07-04 08:32:07 +00:00
Derick Rethans
346c090924 - Fixed bug #33562 (date("") crashes). 2005-07-04 07:48:19 +00:00
Derick Rethans
effc5f1927 - Do not crash when the abbreviation doesn't exist. 2005-07-04 07:16:09 +00:00
3334de5fa2 ChangeLog update 2005-07-04 05:38:46 +00:00
foobar
45ae792d08 - Always create the file with correct paths (gdb likes it better like this) 2005-07-04 00:25:39 +00:00
foobar
19b6ffed3c - Always use #ifdef when dealing with HAVE_* defines from AC_CHECK_FUNCS()
- Added check for strftime() also in the timelib configure
2005-07-03 23:30:52 +00:00
Derick Rethans
422f14cb0f - Fixed bug #33536 (strtotime defaults to now even on non time string). 2005-07-03 21:38:54 +00:00
Derick Rethans
8aa3554d19 - Reimplemented time(), getdate() and localtime() functions with new datetime
library.
2005-07-03 20:45:08 +00:00
Derick Rethans
0ef991e5ae - Fixed bug #33532 (Different output for strftime() and date()).
- Re-implemented checkdate(), strftime() and gmstrftime() with the new timelib
  code.
2005-07-03 19:14:55 +00:00
Ilia Alshanetsky
dda7692c87 Avoid strlen() if we know the length. 2005-07-03 18:56:57 +00:00
Derick Rethans
34c4ac7bac - Fixed unintialized variable issue. 2005-07-03 18:49:07 +00:00
foobar
b440eb4b45 function style 2005-07-03 15:39:48 +00:00
Derick Rethans
2e9d063814 - Added fallback to system's timezone setting, but marked with an E_STRICT
error.
- Adjusted tests to use the date_timezone_set() function.
2005-07-03 15:01:29 +00:00
Derick Rethans
d3c83378eb - Move mktime/gmmktime related tests from ext/standard to ext/date. 2005-07-03 14:36:59 +00:00
Derick Rethans
ed02f202f0 - Fixed bug #30096 (gmmktime does not return the corrent time).
- Re-implemented mktime and gmmktime with new date time library.
- Added testcase for bug #30096, updated test cases for E_STRICT warning of
  is_dst parameter usage for mktime/gmmktime.
2005-07-03 14:27:31 +00:00
Dmitry Stogov
f4b5a51952 Fixed memory leak 2005-07-03 11:09:42 +00:00
Marcus Boerger
d3c337e59d - Tweak tests a bit 2005-07-03 09:10:41 +00:00
fa9fdbeeac ChangeLog update 2005-07-03 05:32:08 +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
6649a16c3d BFN 2005-07-02 23:04:34 +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
e273318d76 ChangeLog update 2005-07-02 05:34:49 +00:00
Greg Beaver
03c835464f XML_RPC -> 1.3.1 (tar, not tgz) 2005-07-02 02:55:32 +00:00
Greg Beaver
aeeda84714 XML_RPC -> 1.3.1 2005-07-02 02:48:06 +00:00
Edin Kadribasic
230d5bc4fc Inconsistency noticed by Nicholas Telford 2005-07-01 23:47:08 +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
Pierre Joye
6b4910b028 bump xml_rpc to 1.3.1, php4 win32 builds uses this list to (4.4) 2005-07-01 09:20:28 +00:00
Edin Kadribasic
e70b3a94f4 Use timelib types.
(Fixes compilation on older Microsoft compilers)
2005-07-01 08:59:57 +00:00
Anantha Kesari H Y
fe81fa0338 NetWare LibC has reentrant time functions no need to have this.
-- Kamesh from hyanantha's account
2005-07-01 07:55:28 +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
6e4d1b9be6 ChangeLog update 2005-07-01 05:37:58 +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