]>
granicus.if.org Git - php/log
Andi Gutmans [Wed, 27 Oct 2004 18:15:03 +0000 (18:15 +0000)]
- Revert Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean).
- Need to discuss where the real problem is.
Andi Gutmans [Wed, 27 Oct 2004 18:08:56 +0000 (18:08 +0000)]
- Tiny fixes
Andi Gutmans [Wed, 27 Oct 2004 17:58:46 +0000 (17:58 +0000)]
- Improve comments, docs, code...
Antony Dovgal [Wed, 27 Oct 2004 11:58:49 +0000 (11:58 +0000)]
fix bug #30388 (rename across filesystems loses ownership and permission info)
Wez Furlong [Wed, 27 Oct 2004 11:07:26 +0000 (11:07 +0000)]
Fix possible crash; patch by Kamesh Jayachandran
Wez Furlong [Wed, 27 Oct 2004 10:26:27 +0000 (10:26 +0000)]
Synopsis:
PDOStatement::setFetchMode()
reset default fetch() mode for a statement to PDO_FETCH_BOTH
PDOStatement::setFetchMode(PDO_FETCH_NUM)
PDOStatement::setFetchMode(PDO_FETCH_ASSOC)
PDOStatement::setFetchMode(PDO_FETCH_BOTH)
PDOStatement::setFetchMode(PDO_FETCH_OBJ)
set default fetch() mode for a statement.
PDOStatement::setFetchMode(PDO_FETCH_COLUMN, int colno)
set default fetch() mode to retrieve colno-th column on each fetch() call.
PDOStatement::setFetchMode(PDO_FETCH_CLASS, string classname [, array ctor args])
set default fetch() mode to create an instance of classname,
calling it's ctor, passing the optional ctor args.
The names of the columns in the result set will be used as property names on
the object instance. PPP rules apply.
[NOTE: calling ctor is not yet implemented]
[TODO: this might crash PHP for persistent PDO handles]
PDOStatement::setFetchMode(PDO_FETCH_INTO, object obj)
Similar to PDO_FETCH_CLASS, except that each iteration will update the
supplied object properties.
[TODO: this might crash PHP for persistent PDO handles]
The default fetch() mode is used when no parameters are passed to
PDOStatement::fetch(). When using a statement in an iterator context,
PDOStatement::fetch() is called implicitly on each iteration.
object PDO::queryAndIterate(string sql, <PDOStatement::setFetchMode args>)
This is semantically equivalent to:
$stmt = $pdo->prepare($sql);
$stmt->execute();
$stmt->setFetchMode($args);
return $stmt;
Example/Intended usage:
/* fetch an array with numeric and string keys */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test") as $row) {
debug_zval_dump($row);
}
/* fetch the value of column 1 into $row on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
PDO_FETCH_COLUMN, 1) as $row) {
debug_zval_dump($row); // string(3) "foo"
}
/* create a new instance of class Foo on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
PDO_FETCH_CLASS, 'Foo') as $row) {
debug_zval_dump($row);
/*
Object(Foo)#4 (2) refcount(2){
["NAME"]=>
string(12) "foo220051429" refcount(2)
["VALUE"]=>
string(12) "bar789825748" refcount(2)
}
*/
}
etc.
<changelog@php.net> [Wed, 27 Oct 2004 00:36:13 +0000 (00:36 +0000)]
ChangeLog update
Andi Gutmans [Tue, 26 Oct 2004 23:25:05 +0000 (23:25 +0000)]
- Patch from Andrey Hristov:
I have cooked a small patch which allows is_subclass_of() the accept
not only an object as first parameter but a string as well. When string
is passed the function checks whether the class specified is subclass of
the second parameter
class a{}
class b{} extends a{}
is_subclass_of("a", "a") //false
is_subclass_of("b", "a") //true
currently only objects are allowed as first parameter
Ilia Alshanetsky [Tue, 26 Oct 2004 22:38:34 +0000 (22:38 +0000)]
Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean).
Wez Furlong [Tue, 26 Oct 2004 22:00:15 +0000 (22:00 +0000)]
*cough* de-bogusify driver registration.
(what was I smoking??)
Wez Furlong [Tue, 26 Oct 2004 09:24:07 +0000 (09:24 +0000)]
Fix for Bug #29418 (double free when openssl_csr_new fails).
Also hook up MSHUTDOWN function which appears to have never been enabled.
Patch by Kamesh Jayachandran
<changelog@php.net> [Tue, 26 Oct 2004 00:48:48 +0000 (00:48 +0000)]
ChangeLog update
Ilia Alshanetsky [Mon, 25 Oct 2004 13:28:56 +0000 (13:28 +0000)]
Merge gettimeofday() based code to prevent duplication.
<changelog@php.net> [Mon, 25 Oct 2004 00:36:45 +0000 (00:36 +0000)]
ChangeLog update
Ilia Alshanetsky [Sun, 24 Oct 2004 17:41:13 +0000 (17:41 +0000)]
Make request start time be available via $_SERVER['REQUEST_TIME'].
# As discussed on internals.
<changelog@php.net> [Sun, 24 Oct 2004 00:36:26 +0000 (00:36 +0000)]
ChangeLog update
Hartmut Holzgraefe [Sat, 23 Oct 2004 23:03:52 +0000 (23:03 +0000)]
Make ldap_parse_reference() available on Windows (Bug #29492)
Joe Orton [Sat, 23 Oct 2004 13:48:05 +0000 (13:48 +0000)]
- always convert apr_time_t to time_t using apr_time_sec() to be future-proof.
- print apr_time_t values using APR_TIME_T and apr_snprintf.
- remove redundant add_property_long calls.
Joe Orton [Sat, 23 Oct 2004 12:56:20 +0000 (12:56 +0000)]
Fix the get_request_time implementation for the 2.0 SAPIs to return
seconds not microseconds and to use TSRM stuff correctly.
Antony Dovgal [Sat, 23 Oct 2004 09:32:44 +0000 (09:32 +0000)]
commit fixes by <mikael dot suvi at trigger dot ee>
(segfaults under heavy load)
Andi Gutmans [Sat, 23 Oct 2004 07:30:18 +0000 (07:30 +0000)]
- Add missing file
<changelog@php.net> [Sat, 23 Oct 2004 00:35:20 +0000 (00:35 +0000)]
ChangeLog update
Andi Gutmans [Fri, 22 Oct 2004 22:01:34 +0000 (22:01 +0000)]
- Nuke another two files
Andi Gutmans [Fri, 22 Oct 2004 21:42:14 +0000 (21:42 +0000)]
- Commit new VM
- Old one is tagged as PRE_NEW_VM_GEN_PATCH
- Still doing work so more commits to come. Don't complain (yet) :)
Rob Richards [Fri, 22 Oct 2004 13:11:33 +0000 (13:11 +0000)]
fix windows build
Edin Kadribasic [Fri, 22 Oct 2004 10:46:42 +0000 (10:46 +0000)]
Revert Linux LFS patch
Andi Gutmans [Fri, 22 Oct 2004 01:55:39 +0000 (01:55 +0000)]
- Fix crash (MFB PHP5_0)
<changelog@php.net> [Fri, 22 Oct 2004 00:35:53 +0000 (00:35 +0000)]
ChangeLog update
Edin Kadribasic [Thu, 21 Oct 2004 23:50:28 +0000 (23:50 +0000)]
MFB: Linux LFS support, fixes 27792
Ilia Alshanetsky [Thu, 21 Oct 2004 21:20:52 +0000 (21:20 +0000)]
Allow gettimeofday() return a float if optional argument is specified.
<changelog@php.net> [Thu, 21 Oct 2004 00:37:45 +0000 (00:37 +0000)]
ChangeLog update
Andi Gutmans [Wed, 20 Oct 2004 22:55:57 +0000 (22:55 +0000)]
- Fix test
Ilia Alshanetsky [Wed, 20 Oct 2004 22:44:43 +0000 (22:44 +0000)]
Slight optimization in str_split() when split length is the same or greater
then the string length.
Andi Gutmans [Wed, 20 Oct 2004 22:36:32 +0000 (22:36 +0000)]
- One more test fix
Andi Gutmans [Wed, 20 Oct 2004 22:13:44 +0000 (22:13 +0000)]
- Fix interface tests. Interfaces should not use access modifiers
Andi Gutmans [Wed, 20 Oct 2004 17:57:28 +0000 (17:57 +0000)]
- If object handles are equal then save the comparison of properties in
- the == operator.
Stanislav Malyshev [Wed, 20 Oct 2004 15:31:06 +0000 (15:31 +0000)]
MF4: fix double bailout in HEAD when output is attempted from shutdown
Joe Orton [Wed, 20 Oct 2004 09:28:47 +0000 (09:28 +0000)]
Fix case where php_handle_aborted_connection was called outside a
try/end_try block (#25570).
<changelog@php.net> [Wed, 20 Oct 2004 00:37:11 +0000 (00:37 +0000)]
ChangeLog update
Ilia Alshanetsky [Tue, 19 Oct 2004 22:25:15 +0000 (22:25 +0000)]
Simplify code.
Anantha Kesari H Y [Tue, 19 Oct 2004 08:21:24 +0000 (08:21 +0000)]
As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP
Georg Richter [Tue, 19 Oct 2004 05:14:09 +0000 (05:14 +0000)]
Minor fix for mysqli_connect: checking socket_len for NULL Values
(Thx to Paul DuBois)
<changelog@php.net> [Tue, 19 Oct 2004 00:36:32 +0000 (00:36 +0000)]
ChangeLog update
Ilia Alshanetsky [Mon, 18 Oct 2004 22:41:24 +0000 (22:41 +0000)]
Fixed bug #30475 (curl_getinfo() may crash in some situations).
Antony Dovgal [Mon, 18 Oct 2004 15:05:06 +0000 (15:05 +0000)]
fix bug #30442 ( segmentation fault when parsing ?getvariable[][ )
Anantha Kesari H Y [Mon, 18 Oct 2004 12:06:57 +0000 (12:06 +0000)]
including zend_compile.h for NetWare as NetWare uses MetroWerks Code warrior compiler which does not allow declarations of following kind before defining the types.
extern struct _zend_arg_info first_arg_force_ref[2];
Anantha Kesari H Y [Mon, 18 Oct 2004 10:42:16 +0000 (10:42 +0000)]
removing inclusion of platform specific config files as they are already included from php_scandir.h
Anantha Kesari H Y [Mon, 18 Oct 2004 10:26:45 +0000 (10:26 +0000)]
removing php_output_activate Fix for bug#30397
Derick Rethans [Mon, 18 Oct 2004 06:04:02 +0000 (06:04 +0000)]
- Revert patch until it is discussed
<changelog@php.net> [Mon, 18 Oct 2004 00:36:09 +0000 (00:36 +0000)]
ChangeLog update
<changelog@php.net> [Sun, 17 Oct 2004 00:35:52 +0000 (00:35 +0000)]
ChangeLog update
Andi Gutmans [Sat, 16 Oct 2004 23:17:58 +0000 (23:17 +0000)]
- One more test (WS)
Andi Gutmans [Sat, 16 Oct 2004 23:16:50 +0000 (23:16 +0000)]
- WS fix to test commit
Anantha Kesari H Y [Sat, 16 Oct 2004 10:32:42 +0000 (10:32 +0000)]
Fix for Bug #30397
Anantha Kesari H Y [Sat, 16 Oct 2004 09:28:45 +0000 (09:28 +0000)]
Fix for 30457
<changelog@php.net> [Fri, 15 Oct 2004 00:36:38 +0000 (00:36 +0000)]
ChangeLog update
Ilia Alshanetsky [Thu, 14 Oct 2004 23:19:38 +0000 (23:19 +0000)]
Added sqlite_fetch_column_types() 3rd argument for arrays.
Marcus Boerger [Thu, 14 Oct 2004 07:26:04 +0000 (07:26 +0000)]
- Allow to omit object/classname in get_parent_class() which makes it
compatible with the signature and behavior of get_class()
<changelog@php.net> [Thu, 14 Oct 2004 00:49:13 +0000 (00:49 +0000)]
ChangeLog update
Ilia Alshanetsky [Wed, 13 Oct 2004 23:26:29 +0000 (23:26 +0000)]
Added optional offset parameter to file_get_contents().
Andi Gutmans [Wed, 13 Oct 2004 01:04:08 +0000 (01:04 +0000)]
- Don't allow access modifiers in interfaces. Explicitly stating public
- should also be disallowed but we don't have a way to detect it today.
<changelog@php.net> [Wed, 13 Oct 2004 00:37:00 +0000 (00:37 +0000)]
ChangeLog update
Ilia Alshanetsky [Tue, 12 Oct 2004 23:25:24 +0000 (23:25 +0000)]
MFH: Added optional offset parameter to stream_get_contents().
Marcus Boerger [Tue, 12 Oct 2004 22:19:43 +0000 (22:19 +0000)]
Bug #30381 Strange results with get_class_vars()
Marcus Boerger [Tue, 12 Oct 2004 11:01:08 +0000 (11:01 +0000)]
- Fix visibility in get_class_vars() and get_class_methods()
# Still there is a problem/error in the executor, i'll have a look
Marcus Boerger [Tue, 12 Oct 2004 09:13:20 +0000 (09:13 +0000)]
- Fix set_exception_handler
# unsettign with '' never worked so we use NULL now which is much better
# because it matches the the return NULL in case no handler was defined
# and can't lead to problems with wrong string operations.
<changelog@php.net> [Tue, 12 Oct 2004 00:35:59 +0000 (00:35 +0000)]
ChangeLog update
Ilia Alshanetsky [Mon, 11 Oct 2004 18:31:49 +0000 (18:31 +0000)]
Fixed bug #30362 (stream_get_line() not handling end string correctly).
Ilia Alshanetsky [Mon, 11 Oct 2004 06:39:41 +0000 (06:39 +0000)]
Fixed bug #30375 (cal_info() does not work without a parameter).
Wez Furlong [Mon, 11 Oct 2004 01:40:41 +0000 (01:40 +0000)]
Fix the return value check too
Wez Furlong [Mon, 11 Oct 2004 01:30:19 +0000 (01:30 +0000)]
check the correct flag for async connect
<changelog@php.net> [Mon, 11 Oct 2004 00:36:26 +0000 (00:36 +0000)]
ChangeLog update
Sebastian Bergmann [Sun, 10 Oct 2004 16:10:38 +0000 (16:10 +0000)]
Add *.gcda and *.gcno (from gcc -fprofile-{use|generate}) to .cvsignore.
Antony Dovgal [Sun, 10 Oct 2004 15:04:21 +0000 (15:04 +0000)]
fix possible segfault
Antony Dovgal [Sun, 10 Oct 2004 10:54:26 +0000 (10:54 +0000)]
prevent deadlocks when re-using previously established persistent connection
<changelog@php.net> [Sun, 10 Oct 2004 00:39:53 +0000 (00:39 +0000)]
ChangeLog update
Wez Furlong [Sat, 9 Oct 2004 13:08:16 +0000 (13:08 +0000)]
Fix crash bug.
# how the f*** did this work in the first place!?
Moriyoshi Koizumi [Sat, 9 Oct 2004 08:16:29 +0000 (08:16 +0000)]
- Fix test. I have no idea why the test was left this way.
Wez Furlong [Sat, 9 Oct 2004 04:39:58 +0000 (04:39 +0000)]
Improve .Net support; this should reduce "failed to init .net" errors.
Improve error reporting while we're at it too.
<changelog@php.net> [Sat, 9 Oct 2004 00:36:00 +0000 (00:36 +0000)]
ChangeLog update
Marcus Boerger [Fri, 8 Oct 2004 22:19:03 +0000 (22:19 +0000)]
Revert for now
Marcus Boerger [Fri, 8 Oct 2004 22:17:32 +0000 (22:17 +0000)]
- Revert automatic pass arg_info
# We need to find a better solutions to prevent havy extension writer probs
Marcus Boerger [Fri, 8 Oct 2004 21:49:39 +0000 (21:49 +0000)]
- Make RecursiveFilterIterator work by using reflection
- Add docu
- Add new example
Marcus Boerger [Fri, 8 Oct 2004 21:17:53 +0000 (21:17 +0000)]
Add new example
Marcus Boerger [Fri, 8 Oct 2004 21:12:15 +0000 (21:12 +0000)]
Use OuterIterator to simplify conversion to C code
Marcus Boerger [Fri, 8 Oct 2004 19:02:00 +0000 (19:02 +0000)]
speling
Andi Gutmans [Fri, 8 Oct 2004 18:50:00 +0000 (18:50 +0000)]
- Fix BC break with default in switch() having to be at the end.
Rob Richards [Fri, 8 Oct 2004 14:54:15 +0000 (14:54 +0000)]
Fix bug #2482 (xmlwriter_start_document chrashes apache)
Fix other function parameters
prep for release
Christian Stocker [Fri, 8 Oct 2004 14:51:55 +0000 (14:51 +0000)]
this NEWS entry should have gone into PHP_5_0 branch. sorry
Moriyoshi Koizumi [Fri, 8 Oct 2004 14:40:46 +0000 (14:40 +0000)]
- Sync with the latest codebase (fixes bug #28220).
Christian Stocker [Fri, 8 Oct 2004 14:40:11 +0000 (14:40 +0000)]
- Fixed bug #27183 (Userland stream wrapper segfaults on stream_write)
Was applied to PHP 4 ages ago, but not to PHP 5 branch
Moriyoshi Koizumi [Fri, 8 Oct 2004 14:24:06 +0000 (14:24 +0000)]
- Avoid doubly symbol definition. Codes in the removed file has never been
used anywhere.
Anantha Kesari H Y [Fri, 8 Oct 2004 12:22:35 +0000 (12:22 +0000)]
As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg
Anantha Kesari H Y [Fri, 8 Oct 2004 09:48:20 +0000 (09:48 +0000)]
removed redundant CLIB_STAT_PATCH checks. defined the IS_ABSOLUTE_PATH macros to suit the NetWare filesystem convention
Anantha Kesari H Y [Fri, 8 Oct 2004 08:59:11 +0000 (08:59 +0000)]
removed redundant NEW_LIBC checks and added the code to recognize the file naming convention in NetWare(supports Windows based drive names like sys: data: and unix like / (sys: being root)
Anantha Kesari H Y [Fri, 8 Oct 2004 07:43:41 +0000 (07:43 +0000)]
explicitly including sys/select.h as NetWare LibC sys/types.h does not include sys/select.h implicitly as other LibC
<changelog@php.net> [Fri, 8 Oct 2004 00:36:09 +0000 (00:36 +0000)]
ChangeLog update
Ilia Alshanetsky [Thu, 7 Oct 2004 23:10:35 +0000 (23:10 +0000)]
Fixed bug #30356 (str_ireplace() does not work on all strings).
Marcus Boerger [Thu, 7 Oct 2004 23:08:19 +0000 (23:08 +0000)]
- Added iterator_to_array() and iterator_count()
Anantha Kesari H Y [Thu, 7 Oct 2004 12:22:16 +0000 (12:22 +0000)]
removed unwanted NEW_LIBC checks for NETWARE and removing custom mktemp.h as LibC itself supports mkstemp functionality