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
Marcus Boerger
3fec3a916b
- Make internally used properties read-only and fix default properties
2004-09-27 22:24:57 +00:00
Marcus Boerger
0e68cf3cdb
- Add new test
2004-09-27 22:23:31 +00:00
Marcus Boerger
8d587ce308
- Declare properties
2004-09-27 21:25:12 +00:00
Marcus Boerger
5ab692da02
- Add new test
2004-09-27 21:24:45 +00:00
Ilia Alshanetsky
52ee529ef4
Make test more generic.
...
# Thanks Marcus.
2004-09-27 17:52:25 +00:00
Anantha Kesari H Y
549ec65eee
removed redundant NEW_LIBC checks
2004-09-27 15:55:04 +00:00
Anantha Kesari H Y
32788092da
removed redundant NEW_LIBC and CLIB_STAT_PATCH checks
2004-09-27 15:37:33 +00:00
Anantha Kesari H Y
09d305c1ff
removed redundant NEW_LIBC checks
2004-09-27 14:51:17 +00:00
Anantha Kesari H Y
5da74deab9
removed unwanted NEW_LIBC checks
2004-09-27 14:29:55 +00:00
Anantha Kesari H Y
e12ea3c30d
removed redundant NEW_LIBC check
2004-09-27 14:25:13 +00:00
Anantha Kesari H Y
e510e26aa6
removed unwanted NEW_LIBC checks and comments
2004-09-27 14:19:07 +00:00
Marcus Boerger
9291a7fa98
Fix Reflection_Class to ReflectionClass in docu/messages
2004-09-27 09:11:40 +00:00
Marcus Boerger
04fe8184f8
- Fix warnings
2004-09-27 09:01:18 +00:00
Marcus Boerger
32a0465214
- Fix warning
2004-09-26 22:23:14 +00:00
Marcus Boerger
cc7ef25e4a
fix build
2004-09-26 22:20:24 +00:00
Marcus Boerger
32e478b9fc
- Add fputcsv() (David Sklar)
2004-09-26 21:55:22 +00:00
Marcus Boerger
881c2f05f5
- Earlier detection of failure (.c now)
2004-09-26 21:49:16 +00:00
Marcus Boerger
abe47301c1
- Earlier detection of failure
2004-09-26 21:47:27 +00:00
Marcus Boerger
ace462334e
Fix TSRM build
2004-09-26 21:45:17 +00:00
Marcus Boerger
42bc4cd0ca
Add new examples
2004-09-26 21:21:45 +00:00
Wez Furlong
69a91aae8e
Removing clucking debug and tweak the reset call
2004-09-26 20:52:07 +00:00
Wez Furlong
e7a6eca69d
rough cut at mysql meta data
2004-09-26 20:47:03 +00:00
Wez Furlong
486b426947
meta data for sqlite3.
...
Fix repeated executes when the entire rowset has not been consumed.
2004-09-26 20:46:35 +00:00
Wez Furlong
eb0cd48d60
Add rough cut at fetching meta data.
2004-09-26 20:45:44 +00:00
Ilia Alshanetsky
d5bac133ee
Return FALSE when file cannot be found.
...
Specify full paths to the files used for the test.
2004-09-26 19:24:18 +00:00
Ilia Alshanetsky
d6501f756a
fixed test output.
2004-09-26 19:12:06 +00:00
Marcus Boerger
3cdd2bcb01
- Add more tests
2004-09-26 18:28:07 +00:00
Wez Furlong
429b37d750
compile fix from Timm
2004-09-26 13:52:09 +00:00
Wez Furlong
0c1a436917
Probable fix for Bug #30147
2004-09-25 23:13:49 +00:00
Anantha Kesari H Y
cc45f504d4
removing the unwanted inclusion of headers
2004-09-25 15:39:26 +00:00
Anantha Kesari H Y
b35e507884
removing unwanted comment
2004-09-25 15:36:47 +00:00
Anantha Kesari H Y
293ab565b5
removing unwanted inclusion of socket header file
2004-09-25 15:33:57 +00:00
Anantha Kesari H Y
80a4042a5c
removed NEW_LIBC checks in NETWARE
2004-09-25 15:30:26 +00:00
Marcus Boerger
16f30e1951
- Fix lib substitution (rurban at x-ray dot at )
2004-09-25 15:29:19 +00:00
Anantha Kesari H Y
7d57757a8a
removed redundant NEW_LIBC checks
2004-09-25 15:26:55 +00:00
Anantha Kesari H Y
6692794433
removed redundance LIBC checks for NETWARE
2004-09-25 15:23:35 +00:00
Anantha Kesari H Y
78ecac2569
removed unwanted NEW_LIBC checks as they are no more needed for NETAWRE
2004-09-25 14:54:41 +00:00
Anantha Kesari H Y
146cb29054
removing unwanted header files getting included
2004-09-25 14:48:44 +00:00
Anantha Kesari H Y
bc90ecb7e2
removed unwanted NEW_LIBC checks
2004-09-25 14:46:24 +00:00
Anantha Kesari H Y
c4b57bc16b
Now NetWare LibC supports proper stat structure no need of CLIB_STAT_PATCH and all such checks
2004-09-25 14:23:32 +00:00
Anantha Kesari H Y
595268403a
removed the redundant NEW_LIBC checks
2004-09-25 14:19:38 +00:00
Anantha Kesari H Y
00760e1343
removed the redundant NEW_LIBC checks
2004-09-25 14:09:45 +00:00
Anantha Kesari H Y
24437ccb75
cleaned up confusing NetWare specific check. disabled chown and chgrp for NetWare
2004-09-25 13:19:45 +00:00
Wez Furlong
2416481fd1
More sensible error codes in the exceptions we throw for broken transactions
2004-09-24 18:49:33 +00:00
Ilia Alshanetsky
1fc2b79172
Make handle error messages handle persistent situations better.
2004-09-23 21:15:51 +00:00
Ilia Alshanetsky
626caf0292
Make error messages handle persistent environments properly.
2004-09-23 21:03:41 +00:00
Wez Furlong
72040f7f2a
more method table adjustments.
...
mysql driver needs work with the error message stuff.
Other drivers need a bit more auditing...
2004-09-23 20:43:11 +00:00
Wez Furlong
b42c14f07e
placeholder for someone to implement a ping for persistent connections
2004-09-23 20:20:23 +00:00
Wez Furlong
53ed3475ce
add entry for liveness check
2004-09-23 20:09:00 +00:00
Wez Furlong
7937f0a229
Implement persistent connections
...
$dbh->exec --> $dbh->query
2004-09-23 20:07:02 +00:00
Marcus Boerger
2e49a2d960
Add test description
2004-09-23 18:43:21 +00:00
Marcus Boerger
c0b62ca36d
Add new test
2004-09-23 18:38:34 +00:00
Marcus Boerger
e13eb1d6c0
Bugfix # 30209
2004-09-23 18:37:53 +00:00
Dmitry Stogov
b027850ba4
Fixed bug #30182 (SOAP module processing WSDL file dumps core).
2004-09-22 05:58:40 +00:00
Frank M. Kromann
62fbbd1494
Fix win32 build
2004-09-21 18:09:29 +00:00
Wez Furlong
31a17d9044
Enable hypot for all
2004-09-20 22:08:06 +00:00
Edin Kadribasic
3da64fa20a
Add additional include search path
2004-09-20 21:26:24 +00:00
Ilia Alshanetsky
4af4cf0914
Fixed bug #29913 (parse_url() is now binary safe).
2004-09-20 05:13:35 +00:00
Wez Furlong
9ce9605723
Use the correct free() here...
2004-09-19 22:20:55 +00:00
Wez Furlong
eb5e0d6d12
Add package.xml
...
(not quite ready for release)
2004-09-19 19:50:06 +00:00
Wez Furlong
ceb551024a
Add support for:
...
$d = new PDO('foobar'); // name has no : character
This will indirect via the entry "pdo.dsn.foobar" from the php.ini file,
so if you have:
pdo.dsn.foobar=sqlite::memory:
the above is equivalent to this:
$d = new PDO('sqlite::memory:');
which creates an in-memory sqlite db.
2004-09-19 19:28:02 +00:00
Wez Furlong
f40608230b
Use NO_PERM code here
2004-09-19 18:13:09 +00:00
Wez Furlong
797303d23a
un-bogusify uri: stuff...
2004-09-19 18:11:27 +00:00
Wez Furlong
34d10931e2
Add "no permission" error code.
...
Add a uri: psuedo driver; it specifies the name of a resource that contains,
as its first line, the actual data source to connect to.
The resource can be a local file, or it can be any resource for which PHP
has a wrapper.
// loads connection data from the file "myapp"
$d = new PDO('uri:myapp');
// lets say that public.db.com has a read-only db open for the public
// their connection data is also published via the web:
// (not so great to resolve this on each request though...)
$d = new PDO('uri:http://public.db.com/pdo-connection-data ');
2004-09-19 16:58:13 +00:00
Wez Furlong
6fa469f367
make it build on win32
2004-09-19 15:47:13 +00:00
Wez Furlong
0d4869f24b
Add transaction support.
...
Add authorizer/safe_mode support
2004-09-19 12:42:39 +00:00
Marcus Boerger
d0cfb7d3fd
Bugfix #30146 (ReflectionProperty->getValue() requires instance for static property)
2004-09-19 11:54:08 +00:00
Marcus Boerger
dfe23e34d9
Add new test
2004-09-19 11:53:30 +00:00
Marcus Boerger
980424a834
Add new test
2004-09-19 11:26:05 +00:00
Marcus Boerger
43d9ade92b
Bugfix #30148 (ReflectionMethod->isConstructor() fails for inherited classes)
2004-09-19 11:25:39 +00:00
Wez Furlong
2f161ab79d
First cut at a PDO driver for SQLite 3.x
...
Features:
- native prepare/execute and bound parameters.
- finally supports binary data (via bound parameter api)
- full unicode/utf-8 support
Missing:
- UDF functions
- authorizer hooks for safe_mode/open_basedir restrictions
You need to download, compile and install sqlite3 yourself; we're not bundling
it (at least, not yet).
2004-09-19 10:55:41 +00:00
Wez Furlong
99e290f882
Fix for Bug #24189 : possibly unsafe select(2) usage.
...
We avoid the problem by using poll(2).
On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.
If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).
Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.
A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).
The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
Wez Furlong
9085689d6f
standardize the callback support to allow array($obj, 'method') callbacks.
...
Add a couple of utility functions.
2004-09-17 11:26:43 +00:00
Dmitry Stogov
7a149080d8
Fixed crash with SoapFault and register_shutdown_function().
2004-09-16 08:12:27 +00:00
Dmitry Stogov
37a66d6d3b
Fixed invalid test name
2004-09-15 14:36:59 +00:00
foobar
36a76f403a
Test for bug #30069
2004-09-15 13:54:16 +00:00
Derick Rethans
7795da58e6
- Added new boolean (fourth) parameter to array_slice() that turns on the
...
preservation of keys in the returned array.
2004-09-15 11:50:27 +00:00
Dmitry Stogov
2a63e78eed
Fixed possible crash
2004-09-15 10:43:07 +00:00
Ilia Alshanetsky
6784176b9c
Fixed compiler warnings.
2004-09-14 23:57:53 +00:00
Dmitry Stogov
ffc2278d6e
Fixed bug #30045 (Cannot pass big integers (> 2147483647) in SOAP requests)
2004-09-14 12:15:30 +00:00