Commit Graph

14370 Commits

Author SHA1 Message Date
Marcus Boerger
e0196d11a4 - Do not autoload if require does the trick 2004-11-01 01:29:06 +00:00
Marcus Boerger
846666109b - Update 2004-11-01 00:33:41 +00:00
Marcus Boerger
b9470609ad - Minor fixes
- Implement AppendIterator in C
2004-11-01 00:26:59 +00:00
Marcus Boerger
9626e9859a - Implement EmptyIterator in C 2004-10-31 20:59:39 +00:00
Marcus Boerger
b87f16bfbe - Update docu 2004-10-31 19:51:34 +00:00
Marcus Boerger
de3a8ea3e1 - Implement InfiniteIterator in C 2004-10-31 19:49:18 +00:00
Marcus Boerger
081dac3026 - Update docu 2004-10-31 19:05:37 +00:00
Marcus Boerger
a872cb0d8d - Aggregate inner iterator for RecursiveIteratorIterator 2004-10-31 19:05:19 +00:00
Marcus Boerger
90012aa3cc - Implement classes IteratorIterator and NoRewindIterator in C 2004-10-31 18:43:00 +00:00
Marcus Boerger
6166a4a49d - Update 2004-10-31 15:36:08 +00:00
Marcus Boerger
41b87ab486 - Add ReflectionFunction::invokeArgs(array)
- Add ReflectionMethod::invokeArgs(obj, array)
2004-10-31 15:30:53 +00:00
Sebastian Bergmann
e1a941b486 Invokation -> Invocation 2004-10-31 10:19:53 +00:00
Marcus Boerger
9d7cba9db0 - Be consistent and use names as keys (found by johannes) 2004-10-30 19:53:25 +00:00
Marcus Boerger
0e6d7d652e - Update to new API 2004-10-30 19:14:05 +00:00
Marcus Boerger
861bad634a - Fix inner iterator aggregation 2004-10-30 19:12:14 +00:00
Marcus Boerger
9dcce367e0 WS (ups) 2004-10-30 14:34:43 +00:00
Marcus Boerger
e2ba10a727 strip trailing (back)slash from path 2004-10-30 14:33:25 +00:00
Marcus Boerger
8bf02ee681 - Fix protos 2004-10-30 10:18:10 +00:00
Marcus Boerger
7c4760d421 - Fix proto 2004-10-30 10:04:37 +00:00
Marcus Boerger
b67ca452c3 - Update docu 2004-10-29 20:58:58 +00:00
Marcus Boerger
208a97a221 - Implement OuterIterator in C 2004-10-29 20:12:57 +00:00
Marcus Boerger
85cae78988 - Abstract no longer valid here 2004-10-29 19:50:51 +00:00
Andi Gutmans
939a0f136e - [PATCH] Bug fix for #29770, but for PHP 4.3.9 (Vladimir Zidar) 2004-10-29 00:37:22 +00:00
Ilia Alshanetsky
321cd10977 Simplify code. 2004-10-28 22:22:22 +00:00
Marcus Boerger
dbd717591a - TSRM Fix 2004-10-28 07:47:46 +00:00
Ilia Alshanetsky
23344ea427 Simplify and cleanup code. 2004-10-27 23:12:05 +00:00
Wez Furlong
c8cc96e6fe Fix possible crash; patch by Kamesh Jayachandran 2004-10-27 11:07:26 +00:00
Wez Furlong
35b00ffdab 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.
2004-10-27 10:26:27 +00:00
Wez Furlong
12a678ca6a *cough* de-bogusify driver registration.
(what was I smoking??)
2004-10-26 22:00:15 +00:00
Wez Furlong
0a4127a610 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
2004-10-26 09:24:07 +00:00
Ilia Alshanetsky
852170d740 Merge gettimeofday() based code to prevent duplication. 2004-10-25 13:28:56 +00:00
Hartmut Holzgraefe
7fc2e6ca5b Make ldap_parse_reference() available on Windows (Bug #29492) 2004-10-23 23:03:52 +00:00
Antony Dovgal
07f84de680 commit fixes by <mikael dot suvi at trigger dot ee>
(segfaults under heavy load)
2004-10-23 09:32:44 +00:00
Rob Richards
b20d2ba86c fix windows build 2004-10-22 13:11:33 +00:00
Ilia Alshanetsky
4b947b0525 Allow gettimeofday() return a float if optional argument is specified. 2004-10-21 21:20:52 +00:00
Ilia Alshanetsky
0818faee7f Slight optimization in str_split() when split length is the same or greater
then the string length.
2004-10-20 22:44:43 +00:00
Ilia Alshanetsky
c5e2e02b0a Simplify code. 2004-10-19 22:25:15 +00:00
Anantha Kesari H Y
2559c94740 As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP 2004-10-19 08:21:24 +00:00
Georg Richter
f4f84ac9ab Minor fix for mysqli_connect: checking socket_len for NULL Values
(Thx to Paul DuBois)
2004-10-19 05:14:09 +00:00
Ilia Alshanetsky
8c8fba0841 Fixed bug #30475 (curl_getinfo() may crash in some situations). 2004-10-18 22:41:24 +00:00
Ilia Alshanetsky
7d18ca4c93 Added sqlite_fetch_column_types() 3rd argument for arrays. 2004-10-14 23:19:38 +00:00
Ilia Alshanetsky
51ffc01776 Added optional offset parameter to file_get_contents(). 2004-10-13 23:26:29 +00:00
Ilia Alshanetsky
2390ca71f1 MFH: Added optional offset parameter to stream_get_contents(). 2004-10-12 23:25:24 +00:00
Ilia Alshanetsky
5c04e39383 Fixed bug #30362 (stream_get_line() not handling end string correctly). 2004-10-11 18:31:49 +00:00
Ilia Alshanetsky
f8a4d8a4d5 Fixed bug #30375 (cal_info() does not work without a parameter). 2004-10-11 06:39:41 +00:00
Antony Dovgal
3a5822585e fix possible segfault 2004-10-10 15:04:21 +00:00
Antony Dovgal
b0b4b6eff2 prevent deadlocks when re-using previously established persistent connection 2004-10-10 10:54:26 +00:00
Wez Furlong
9bffcfb407 Fix crash bug.
# how the f*** did this work in the first place!?
2004-10-09 13:08:16 +00:00
Moriyoshi Koizumi
a86095fe07 - Fix test. I have no idea why the test was left this way. 2004-10-09 08:16:29 +00:00
Wez Furlong
b3d9c5bea6 Improve .Net support; this should reduce "failed to init .net" errors.
Improve error reporting while we're at it too.
2004-10-09 04:39:58 +00:00
Marcus Boerger
2ffbbb1588 Revert for now 2004-10-08 22:19:03 +00:00
Marcus Boerger
1546a578ec - Make RecursiveFilterIterator work by using reflection
- Add docu
- Add new example
2004-10-08 21:49:39 +00:00
Marcus Boerger
1a7051f913 Add new example 2004-10-08 21:17:53 +00:00
Marcus Boerger
5832635b68 Use OuterIterator to simplify conversion to C code 2004-10-08 21:12:15 +00:00
Marcus Boerger
f0c9f998d3 speling 2004-10-08 19:02:00 +00:00
Rob Richards
1aa7fda66b Fix bug #2482 (xmlwriter_start_document chrashes apache)
Fix other function parameters
prep for release
2004-10-08 14:54:15 +00:00
Moriyoshi Koizumi
4f247de89b - Sync with the latest codebase (fixes bug #28220). 2004-10-08 14:40:46 +00:00
Moriyoshi Koizumi
756ee85bec - Avoid doubly symbol definition. Codes in the removed file has never been
used anywhere.
2004-10-08 14:24:06 +00:00
Ilia Alshanetsky
2476198086 Fixed bug #30356 (str_ireplace() does not work on all strings). 2004-10-07 23:10:35 +00:00
Marcus Boerger
6349f46e38 - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
Rob Richards
7dced12c32 add DOMDocument xmlEncoding, xmlStandalone, xmlVersion (spec name changes)
add DOMText isElementContentWhitespace (spec name change)
 - old props/method kept for BC.
 - spec names changed when Level 3 went from Draft to Recommendation
nuke some unused code
2004-10-07 11:40:20 +00:00
Rob Richards
b0ffa2497b fix segfault in appendXML due to libxml bug 2004-10-07 10:00:39 +00:00
Marcus Boerger
ca6558a406 - Fix Bug #30344 2004-10-06 21:23:18 +00:00
Ilia Alshanetsky
e35adfe522 Fixed bug #30027 (Possible crash inside ftp_get()).
# Patch by cfield at affinitysolutions dot com
2004-10-05 23:53:09 +00:00
Marcus Boerger
476013cebd - Use ZEND_ARG_SEND_AUTOMATIC for several array functions 2004-10-05 18:37:17 +00:00
Dmitry Stogov
fb6072e10d Fixed bug #30175 (SOAP results aren't parsed correctly) 2004-10-05 16:00:40 +00:00
Ilia Alshanetsky
5316f7bf25 Fixed bug #30281 (Prevent non-wbmp images from being detected as such). 2004-10-04 20:42:30 +00:00
Andi Gutmans
11bcaedfc8 - Rename delete_global_variable() to zend_delete_global_variable() 2004-10-04 20:17:06 +00:00
Andi Gutmans
db507dd153 - Commit the variable fetch optimization.
- Extensions which delete global variables need to use new special function
- delete_global_variable() (I'm about to rename it) to remove them.
- Will post to internals@ or via commit messages if there's anything else.
2004-10-04 19:54:35 +00:00
Marcus Boerger
bb77132391 - Add new test 2004-10-04 17:53:55 +00:00
Anantha Kesari H Y
47e4f575c2 modified to 3rd argument of fcntl to FD_CLOEXEC 2004-10-04 08:52:53 +00:00
Rob Richards
5f630e1935 add evaluate() method to support all xpath expressions 2004-10-03 09:55:29 +00:00
Rasmus Lerdorf
3d85a5d876 Slightly different fix for HEAD for the ming output method BC breaking
change.
2004-10-01 19:28:45 +00:00
Sebastian Bergmann
b4a5314dc3 Fugbix typo. 2004-10-01 10:35:26 +00:00
Anantha Kesari H Y
142e92bb70 NetWare specific stat structure access incorporated 2004-09-30 14:31:30 +00:00
Anantha Kesari H Y
ccbeace1ff handled NetWare F_SETFD and stat differences 2004-09-30 14:23:51 +00:00
Antony Dovgal
0ea23249da fix error message 2004-09-30 14:20:02 +00:00
Antony Dovgal
fcd702efe4 fix segfault when using unknown/unsupported save_handler and/or serialize_handler (bug #30282) 2004-09-30 12:19:59 +00:00
Marcus Boerger
9d28fc6643 - CS: Use PHP_* instead of ZEND_* macros 2004-09-30 08:04:29 +00:00
Ilia Alshanetsky
c7cd1d708f Fixed bug #30276 (Possible crash in ctype_digit on large numbers). 2004-09-30 01:22:56 +00:00
Marcus Boerger
1619178f5e - Speling 2004-09-29 20:27:36 +00:00
Marcus Boerger
e109ab5492 - Fix docu 2004-09-29 20:25:28 +00:00
Marcus Boerger
35e78f43a1 - Add missing --SKIPIF-- 2004-09-29 20:10:12 +00:00
Marcus Boerger
d748f8ecf2 - Fix tests (atm preg_match() is wrong) 2004-09-29 20:09:52 +00:00
Marcus Boerger
c9d32d9b71 - Update test 2004-09-29 19:36:30 +00:00
Anantha Kesari H Y
7387db4366 Included select.h for NetWare 2004-09-29 10:28:17 +00:00
Anantha Kesari H Y
474c53348c removed unwanted comments, NEW_LIBC checks and NetWare specific stat structure population 2004-09-29 10:21:41 +00:00
Anantha Kesari H Y
745beb2deb removed redundant NEW_LIBC and CLIB_STAT_PATCH checks for NETWARE 2004-09-29 09:47:15 +00:00
Marcus Boerger
2f40d61bed - Fix test 2004-09-29 09:43:33 +00:00
Marcus Boerger
7133858532 - Fix test by removing corrupt --SKIPIF-- 2004-09-29 09:41:18 +00:00
Marcus Boerger
a898c2dd28 Fix classnames 2004-09-29 08:55:45 +00:00
Marcus Boerger
93753e19b1 Add new test 2004-09-29 08:48:16 +00:00
Anantha Kesari H Y
ec42c1432c implemented proc_open for NETWARE 2004-09-29 06:04:36 +00:00
Sterling Hughes
8f1a327edb Add strptime function. 2004-09-29 04:57:19 +00:00
Marcus Boerger
aa8da8daf1 - Fix warnign 2004-09-28 23:10:39 +00:00
foobar
72b2d1c9ee MFB: - Fixed bug #30205 (Missing <unistd.h> in crypt() configure test). 2004-09-28 20:42:56 +00:00
Marcus Boerger
b907755e3c - publish reflection_class_factory() as zend_reflection_class_factory() 2004-09-28 19:06:15 +00:00
Frank M. Kromann
81c8d3132b Fix compilation 2004-09-28 18:38:29 +00:00
Antony Dovgal
454b9659c5 fix bug #29652 (number of FD to ocius.msb is growing)
many thanks to Sergei V. Rozinov <S dot Rozinov at sibron dot ru> for testing
2004-09-28 16:59:10 +00:00
Ilia Alshanetsky
183126535c Fixed bug #30224 (Sybase date strings are sometimes not null terminated). 2004-09-28 14:07:23 +00:00