]> granicus.if.org Git - php/log
php
19 years agoFixed SIGSEGV on decoding <any> elements
Dmitry Stogov [Thu, 7 Jul 2005 17:29:25 +0000 (17:29 +0000)]
Fixed SIGSEGV on decoding <any> elements

19 years agopopulate the new dbh->driver field.
Wez Furlong [Thu, 7 Jul 2005 17:08:01 +0000 (17:08 +0000)]
populate the new dbh->driver field.
Implement PDO_ATTR_DRIVER_NAME.

19 years agoFixed memory leak
Ilia Alshanetsky [Thu, 7 Jul 2005 16:27:46 +0000 (16:27 +0000)]
Fixed memory leak

19 years agoadd an attribute for returning the driver name
Wez Furlong [Thu, 7 Jul 2005 16:24:51 +0000 (16:24 +0000)]
add an attribute for returning the driver name

19 years agoFixed bug #33512 (Add missing support for isset()/unset() overloading to complement...
Dmitry Stogov [Thu, 7 Jul 2005 16:09:55 +0000 (16:09 +0000)]
Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods). Now empty($obj[...]) works proper but in addition it may call offsetGet() method.

19 years agoFixed bug #33512 (Add missing support for isset()/unset() overloading to complement...
Dmitry Stogov [Thu, 7 Jul 2005 16:07:09 +0000 (16:07 +0000)]
Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods)

19 years agoFixed memory leak.
Ilia Alshanetsky [Thu, 7 Jul 2005 15:54:00 +0000 (15:54 +0000)]
Fixed memory leak.

19 years agozend_stream_getc uses fread internally. NetWare LibC fread reads 4(Which I believe...
Anantha Kesari H Y [Thu, 7 Jul 2005 15:43:50 +0000 (15:43 +0000)]
zend_stream_getc uses fread internally. NetWare LibC fread reads 4(Which I believe EOT) for EOF(^D) character. This happens when fread is asked to read one and only character as is the case with cl interactive mode.
-- Kamesh

19 years agoremove old test files
Wez Furlong [Thu, 7 Jul 2005 15:36:00 +0000 (15:36 +0000)]
remove old test files

19 years agousing new tests
Wez Furlong [Thu, 7 Jul 2005 15:34:46 +0000 (15:34 +0000)]
using new tests

19 years agouse new tests
Wez Furlong [Thu, 7 Jul 2005 15:33:06 +0000 (15:33 +0000)]
use new tests

19 years agoStop on the 1st skip.
Ilia Alshanetsky [Thu, 7 Jul 2005 15:32:32 +0000 (15:32 +0000)]
Stop on the 1st skip.

19 years agoadopt new tests
Wez Furlong [Thu, 7 Jul 2005 15:20:06 +0000 (15:20 +0000)]
adopt new tests

19 years agofix #33605 (substr_compare() crashes with negative offset & length)
Antony Dovgal [Thu, 7 Jul 2005 15:19:40 +0000 (15:19 +0000)]
fix #33605 (substr_compare() crashes with negative offset & length)

19 years agoFixed bug #28072 (static array with some constant keys will be incorrectly ordered).
Dmitry Stogov [Thu, 7 Jul 2005 15:16:57 +0000 (15:16 +0000)]
Fixed bug #28072 (static array with some constant keys will be incorrectly ordered).

19 years agoskip if we can't connect (include reason in skip output)
Wez Furlong [Thu, 7 Jul 2005 15:15:01 +0000 (15:15 +0000)]
skip if we can't connect (include reason in skip output)

19 years agoReturn an empty array rather then FALSE in fetchAll() on no results.
Ilia Alshanetsky [Thu, 7 Jul 2005 15:14:10 +0000 (15:14 +0000)]
Return an empty array rather then FALSE in fetchAll() on no results.

19 years agoFixed memory leak, after SQLITE_DONE sqlite3_data_count() always returns 0.
Ilia Alshanetsky [Thu, 7 Jul 2005 15:13:28 +0000 (15:13 +0000)]
Fixed memory leak, after SQLITE_DONE sqlite3_data_count() always returns 0.

19 years agoadopt new tests
Wez Furlong [Thu, 7 Jul 2005 15:04:45 +0000 (15:04 +0000)]
adopt new tests

19 years agoDB2 wants us to use the proper ODBC 3 function for closing a cursor.
Wez Furlong [Thu, 7 Jul 2005 14:20:04 +0000 (14:20 +0000)]
DB2 wants us to use the proper ODBC 3 function for closing a cursor.

19 years agoNeed to state NOT NULL here, as DB2 won't allow the UNIQUE constraint without it.
Wez Furlong [Thu, 7 Jul 2005 14:09:58 +0000 (14:09 +0000)]
Need to state NOT NULL here, as DB2 won't allow the UNIQUE constraint without it.

19 years agomake column names lower case
Wez Furlong [Thu, 7 Jul 2005 13:59:34 +0000 (13:59 +0000)]
make column names lower case

19 years agoadopt common tests
Wez Furlong [Thu, 7 Jul 2005 13:58:35 +0000 (13:58 +0000)]
adopt common tests

19 years agosort redirected tests
Wez Furlong [Thu, 7 Jul 2005 13:58:02 +0000 (13:58 +0000)]
sort redirected tests

19 years agomore paranoia about the attribute param here too
Wez Furlong [Thu, 7 Jul 2005 13:56:39 +0000 (13:56 +0000)]
more paranoia about the attribute param here too

19 years agoextra paranoia about the attribute param
Wez Furlong [Thu, 7 Jul 2005 13:56:09 +0000 (13:56 +0000)]
extra paranoia about the attribute param

19 years agoHmm, these ldflags went AWOL.
Wez Furlong [Thu, 7 Jul 2005 13:42:12 +0000 (13:42 +0000)]
Hmm, these ldflags went AWOL.

19 years agoUse PQexecParams() when available, use original case in all other instances.
Ilia Alshanetsky [Thu, 7 Jul 2005 13:35:39 +0000 (13:35 +0000)]
Use PQexecParams() when available, use original case in all other instances.

19 years agoIf asked to populate a set of cflags for a header check, only populate the
Wez Furlong [Thu, 7 Jul 2005 13:22:38 +0000 (13:22 +0000)]
If asked to populate a set of cflags for a header check, only populate the
flags and don't fill in an entry into config.w32.h, UNLESS explicitly told
what to do.

This prevents leakage of things like HAVE_SQLCLI1_H from one pecl into another
(or the core) and confusing the build (as has happened with ibm_db2 and
pdo_odbc).

19 years agoadopt generic PDO test suite
Wez Furlong [Thu, 7 Jul 2005 13:04:26 +0000 (13:04 +0000)]
adopt generic PDO test suite

19 years agoFix 2 bugs:
Wez Furlong [Thu, 7 Jul 2005 12:58:47 +0000 (12:58 +0000)]
Fix 2 bugs:
- summary is only displayed if 2 or more tests were detected
- error out of a bogus test name is passed in

19 years agoFix handling of parameter binding.
Wez Furlong [Thu, 7 Jul 2005 12:49:21 +0000 (12:49 +0000)]
Fix handling of parameter binding.
We need to guess at parameter sizing in some cases (eg: MS Access) as the
SQLDescribeParam() API is an optional feature.
Tidy up error handling.
Add workaround for a shutdown bug that I see with MS ODBC implementation.
(working to determine the precise cause of this).
PDO core test suite now passes all tests.

19 years agoFix bug in bindColumn() for drivers that implement native prepared statements
Wez Furlong [Thu, 7 Jul 2005 12:45:40 +0000 (12:45 +0000)]
Fix bug in bindColumn() for drivers that implement native prepared statements
and that use the PDO rewriter to handle non-native parameter syntax.

19 years agopedantic WS
Wez Furlong [Thu, 7 Jul 2005 12:44:44 +0000 (12:44 +0000)]
pedantic WS

19 years agoIt's not portable to expect any consistency between drivers in the return value
Wez Furlong [Thu, 7 Jul 2005 12:42:52 +0000 (12:42 +0000)]
It's not portable to expect any consistency between drivers in the return value
of an exec() when running DDL; revise test.

19 years agoFixed memory leaks
Dmitry Stogov [Thu, 7 Jul 2005 11:19:56 +0000 (11:19 +0000)]
Fixed memory leaks

19 years agoAllow NULL namespaceURI for getAttributeNodeNS
Rob Richards [Thu, 7 Jul 2005 10:36:08 +0000 (10:36 +0000)]
Allow NULL namespaceURI for getAttributeNodeNS

19 years agoreorder. Also: Documentation belongs elsewhere :)
foobar [Thu, 7 Jul 2005 08:42:53 +0000 (08:42 +0000)]
reorder. Also: Documentation belongs elsewhere :)

19 years agoReverting the DEFAULT_SLASH to / as it breaks the FreeBSD derived function of NetWare...
Anantha Kesari H Y [Thu, 7 Jul 2005 07:12:44 +0000 (07:12 +0000)]
Reverting the DEFAULT_SLASH to / as it breaks the FreeBSD derived function of NetWare LibC like glob.
-- Kamesh

19 years agogwtcwd of NetWare LibC gives a cwd with a volume information.
Anantha Kesari H Y [Thu, 7 Jul 2005 07:10:50 +0000 (07:10 +0000)]
gwtcwd of NetWare LibC gives a cwd with a volume information.
So using getcwdpath which gives with volume information.
getcwdpath gives with directory seperator as \ which is against our DEFAULT_SLASH of /. So finding and replacing \ with /

-- Kamesh

19 years agoCOPY_WHEN_ABSOLUTE is not needed for NetWare.
Anantha Kesari H Y [Thu, 7 Jul 2005 06:52:44 +0000 (06:52 +0000)]
COPY_WHEN_ABSOLUTE is not needed for NetWare.
-- Kamesh

19 years agoFixed support for shared extensions on AIX
Dmitry Stogov [Thu, 7 Jul 2005 05:54:43 +0000 (05:54 +0000)]
Fixed support for shared extensions on AIX

19 years agoChangeLog update
<changelog@php.net> [Thu, 7 Jul 2005 05:39:05 +0000 (05:39 +0000)]
ChangeLog update

19 years agoMissing closing folding marker
Rasmus Lerdorf [Thu, 7 Jul 2005 03:53:47 +0000 (03:53 +0000)]
Missing closing folding marker

19 years agoLeave it up to the user to decide if to escape the sequence name or not.
Ilia Alshanetsky [Thu, 7 Jul 2005 02:17:20 +0000 (02:17 +0000)]
Leave it up to the user to decide if to escape the sequence name or not.

19 years agoFaster sequence id retrieval.
Ilia Alshanetsky [Thu, 7 Jul 2005 00:52:19 +0000 (00:52 +0000)]
Faster sequence id retrieval.

19 years agoExport missing symbol
Edin Kadribasic [Wed, 6 Jul 2005 21:18:09 +0000 (21:18 +0000)]
Export missing symbol

19 years agoFixed possible crash
Dmitry Stogov [Wed, 6 Jul 2005 14:15:51 +0000 (14:15 +0000)]
Fixed possible crash

19 years agorename pdo_test.php to pdo_test.inc, add it, and update tests.
Wez Furlong [Wed, 6 Jul 2005 13:19:25 +0000 (13:19 +0000)]
rename pdo_test.php to pdo_test.inc, add it, and update tests.

19 years agojuggling to track down a problem with odbc
Wez Furlong [Wed, 6 Jul 2005 13:16:40 +0000 (13:16 +0000)]
juggling to track down a problem with odbc

19 years agoFixed test to support 64-bit platforms
Dmitry Stogov [Wed, 6 Jul 2005 07:28:25 +0000 (07:28 +0000)]
Fixed test to support 64-bit platforms

19 years agoFixed SIGSEGV during error processing on some systems (linux/ppc)
Dmitry Stogov [Wed, 6 Jul 2005 06:58:44 +0000 (06:58 +0000)]
Fixed SIGSEGV during error processing on some systems (linux/ppc)

19 years agolast minute debug stuff sneaked in
Wez Furlong [Wed, 6 Jul 2005 06:13:44 +0000 (06:13 +0000)]
last minute debug stuff sneaked in

19 years agoreplace pdo_odbc tests with new redirection thingy
Wez Furlong [Wed, 6 Jul 2005 06:10:52 +0000 (06:10 +0000)]
replace pdo_odbc tests with new redirection thingy

19 years agoremove the old tests for pdo_sqlite
Wez Furlong [Wed, 6 Jul 2005 06:09:13 +0000 (06:09 +0000)]
remove the old tests for pdo_sqlite

19 years agoAdd a redirect test to run the common pdo core tests against the sqlite
Wez Furlong [Wed, 6 Jul 2005 06:08:53 +0000 (06:08 +0000)]
Add a redirect test to run the common pdo core tests against the sqlite
driver

19 years agoAdd tests that can be redirected to with new test harness feature.
Wez Furlong [Wed, 6 Jul 2005 06:07:26 +0000 (06:07 +0000)]
Add tests that can be redirected to with new test harness feature.

19 years agoAdd a new kind of test to the test harness. REDIRECTTEST sections allow an
Wez Furlong [Wed, 6 Jul 2005 06:06:23 +0000 (06:06 +0000)]
Add a new kind of test to the test harness.  REDIRECTTEST sections allow an
extension to piggy-back on the tests defined under another dir and run those.

Example of its use follows shortly with pdo tests.

19 years agoChangeLog update
<changelog@php.net> [Wed, 6 Jul 2005 05:31:49 +0000 (05:31 +0000)]
ChangeLog update

19 years ago- Fixed crash in serialize() + classes. (64bit only)
foobar [Tue, 5 Jul 2005 23:48:44 +0000 (23:48 +0000)]
- Fixed crash in serialize() + classes. (64bit only)

19 years ago- Added testcase for bug #33578.
Derick Rethans [Tue, 5 Jul 2005 21:38:37 +0000 (21:38 +0000)]
- Added testcase for bug #33578.

19 years ago- Fixed bug #33578 (strtotime() doesn't understand "11 Oct" format). (Derick)
Derick Rethans [Tue, 5 Jul 2005 21:33:33 +0000 (21:33 +0000)]
- Fixed bug #33578 (strtotime() doesn't understand "11 Oct" format). (Derick)

19 years agoFixed crash inside stream_get_line() when length parameter equals 0.
Ilia Alshanetsky [Tue, 5 Jul 2005 19:24:07 +0000 (19:24 +0000)]
Fixed crash inside stream_get_line() when length parameter equals 0.

19 years ago- Change memory management so that tzinfo structures can live outside time
Derick Rethans [Tue, 5 Jul 2005 18:30:30 +0000 (18:30 +0000)]
- Change memory management so that tzinfo structures can live outside time
  structures too.

19 years agoProperly detect when the copy command fails
Edin Kadribasic [Tue, 5 Jul 2005 14:49:22 +0000 (14:49 +0000)]
Properly detect when the copy command fails

19 years agoFixed crash in ext\standard\tests\general_functions\bug32647.php on Windows
Dmitry Stogov [Tue, 5 Jul 2005 14:13:46 +0000 (14:13 +0000)]
Fixed crash in ext\standard\tests\general_functions\bug32647.php on Windows

19 years agoFixed test file
Dmitry Stogov [Tue, 5 Jul 2005 14:10:31 +0000 (14:10 +0000)]
Fixed test file

19 years ago- Fixed memory corruption in pg_copy_from() in case the as_null parameter was
Derick Rethans [Tue, 5 Jul 2005 12:45:39 +0000 (12:45 +0000)]
- Fixed memory corruption in pg_copy_from() in case the as_null parameter was
  passed. (Derick)

19 years agoChangeLog update
<changelog@php.net> [Tue, 5 Jul 2005 05:39:31 +0000 (05:39 +0000)]
ChangeLog update

19 years ago- Renamed date_timezone_set/get() to date_default_timezone_set/get().
Derick Rethans [Mon, 4 Jul 2005 21:27:26 +0000 (21:27 +0000)]
- Renamed date_timezone_set/get() to date_default_timezone_set/get().
- Added missing proto's and folding marks.

19 years agoIf the PHP_AUTOCONF and PHP_AUTOMAKE environmental variables are set, use
Jon Parise [Mon, 4 Jul 2005 20:37:07 +0000 (20:37 +0000)]
If the PHP_AUTOCONF and PHP_AUTOMAKE environmental variables are set, use
them when describing the build environment.

Support for these variables was originally added to build/build2.mk:1.36.

As a side note, the build system uses PHP_AUTOHEADER.  Perhaps it should
be listed on its own in the build environment for completeness, despite it
being a component of the autoconf package.

19 years agoMake sure the timezone is NULL, if change operation fails. Ex. memory_limit
Ilia Alshanetsky [Mon, 4 Jul 2005 18:13:15 +0000 (18:13 +0000)]
Make sure the timezone is NULL, if change operation fails. Ex. memory_limit

19 years ago- Fixed logic.
Derick Rethans [Mon, 4 Jul 2005 14:32:50 +0000 (14:32 +0000)]
- Fixed logic.

19 years agoFixed SIGSEGV on 'global ${"{$blah}_ID"};'
Dmitry Stogov [Mon, 4 Jul 2005 13:24:46 +0000 (13:24 +0000)]
Fixed SIGSEGV on 'global ${"{$blah}_ID"};'

19 years agoFix win32 build
Wez Furlong [Mon, 4 Jul 2005 13:22:27 +0000 (13:22 +0000)]
Fix win32 build

19 years ago- PHPAPI + static don't mix, obviously.
Derick Rethans [Mon, 4 Jul 2005 13:21:39 +0000 (13:21 +0000)]
- PHPAPI + static don't mix, obviously.

19 years agoMake sure files-save handler is used always
foobar [Mon, 4 Jul 2005 13:09:14 +0000 (13:09 +0000)]
Make sure files-save handler is used always

19 years agoFixed bug #33520 (crash if safe_mode is on and session.save_path is changed)
Dmitry Stogov [Mon, 4 Jul 2005 12:47:10 +0000 (12:47 +0000)]
Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed)

19 years ago- Added testcase for bug #33563 which is already fixed.
Derick Rethans [Mon, 4 Jul 2005 12:41:20 +0000 (12:41 +0000)]
- Added testcase for bug #33563 which is already fixed.

19 years agoUTC is better
foobar [Mon, 4 Jul 2005 12:41:00 +0000 (12:41 +0000)]
UTC is better

19 years agoFixed bug #31158 (array_splice on $GLOBALS crashes)
Dmitry Stogov [Mon, 4 Jul 2005 10:01:10 +0000 (10:01 +0000)]
Fixed bug #31158 (array_splice on $GLOBALS crashes)

19 years agofix test
foobar [Mon, 4 Jul 2005 08:32:07 +0000 (08:32 +0000)]
fix test

19 years ago- Fixed bug #33562 (date("") crashes).
Derick Rethans [Mon, 4 Jul 2005 07:48:19 +0000 (07:48 +0000)]
- Fixed bug #33562 (date("") crashes).

19 years ago- Do not crash when the abbreviation doesn't exist.
Derick Rethans [Mon, 4 Jul 2005 07:16:09 +0000 (07:16 +0000)]
- Do not crash when the abbreviation doesn't exist.

19 years agoChangeLog update
<changelog@php.net> [Mon, 4 Jul 2005 05:38:46 +0000 (05:38 +0000)]
ChangeLog update

19 years ago- Always create the file with correct paths (gdb likes it better like this)
foobar [Mon, 4 Jul 2005 00:25:39 +0000 (00:25 +0000)]
- Always create the file with correct paths (gdb likes it better like this)

19 years ago- Always use #ifdef when dealing with HAVE_* defines from AC_CHECK_FUNCS()
foobar [Sun, 3 Jul 2005 23:30:52 +0000 (23:30 +0000)]
- Always use #ifdef when dealing with HAVE_* defines from AC_CHECK_FUNCS()
- Added check for strftime() also in the timelib configure

19 years ago- Fixed bug #33536 (strtotime defaults to now even on non time string).
Derick Rethans [Sun, 3 Jul 2005 21:38:54 +0000 (21:38 +0000)]
- Fixed bug #33536 (strtotime defaults to now even on non time string).

19 years ago- Reimplemented time(), getdate() and localtime() functions with new datetime
Derick Rethans [Sun, 3 Jul 2005 20:45:08 +0000 (20:45 +0000)]
- Reimplemented time(), getdate() and localtime() functions with new datetime
  library.

19 years ago- Fixed bug #33532 (Different output for strftime() and date()).
Derick Rethans [Sun, 3 Jul 2005 19:14:55 +0000 (19:14 +0000)]
- Fixed bug #33532 (Different output for strftime() and date()).
- Re-implemented checkdate(), strftime() and gmstrftime() with the new timelib
  code.

19 years agoAvoid strlen() if we know the length.
Ilia Alshanetsky [Sun, 3 Jul 2005 18:56:57 +0000 (18:56 +0000)]
Avoid strlen() if we know the length.

19 years ago- Fixed unintialized variable issue.
Derick Rethans [Sun, 3 Jul 2005 18:49:07 +0000 (18:49 +0000)]
- Fixed unintialized variable issue.

19 years agofunction style
foobar [Sun, 3 Jul 2005 15:39:48 +0000 (15:39 +0000)]
function style

19 years ago- Added fallback to system's timezone setting, but marked with an E_STRICT
Derick Rethans [Sun, 3 Jul 2005 15:01:29 +0000 (15:01 +0000)]
- Added fallback to system's timezone setting, but marked with an E_STRICT
  error.
- Adjusted tests to use the date_timezone_set() function.

19 years ago- Move mktime/gmmktime related tests from ext/standard to ext/date.
Derick Rethans [Sun, 3 Jul 2005 14:36:59 +0000 (14:36 +0000)]
- Move mktime/gmmktime related tests from ext/standard to ext/date.

19 years ago- Fixed bug #30096 (gmmktime does not return the corrent time).
Derick Rethans [Sun, 3 Jul 2005 14:27:31 +0000 (14:27 +0000)]
- 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.

19 years agoFixed memory leak
Dmitry Stogov [Sun, 3 Jul 2005 11:09:42 +0000 (11:09 +0000)]
Fixed memory leak

19 years ago- Tweak tests a bit
Marcus Boerger [Sun, 3 Jul 2005 09:10:41 +0000 (09:10 +0000)]
- Tweak tests a bit

19 years agoChangeLog update
<changelog@php.net> [Sun, 3 Jul 2005 05:32:08 +0000 (05:32 +0000)]
ChangeLog update

19 years agoAdd PDO_FETCH_NAMED; closes PECL #4641 by providing a way to access columns
Wez Furlong [Sun, 3 Jul 2005 03:49:44 +0000 (03:49 +0000)]
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.