Commit Graph

27987 Commits

Author SHA1 Message Date
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
db7af4d8f0 ChangeLog update 2004-09-18 00:35:27 +00:00
Wez Furlong
ff4e970fb1 Make new poll stuff work on win32 (and still be safe on unix) 2004-09-17 14:36:55 +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
Stanislav Malyshev
3755c03291 fix crash when dtor is fialing on shutdown 2004-09-17 10:13:52 +00:00
Ilia Alshanetsky
2a2d49b947 Fixed bug #30050 (Possible crash inside php_shutdown_config()).
# Patch suggestion by nw at softwarekombinat dot de
2004-09-17 02:48:41 +00:00
1775e980ea ChangeLog update 2004-09-17 00:33:44 +00:00
Andi Gutmans
16d79b79d6 - Add test for bug #27669 2004-09-16 19:36:56 +00:00
Dmitry Stogov
7a149080d8 Fixed crash with SoapFault and register_shutdown_function(). 2004-09-16 08:12:27 +00:00
Sebastian Bergmann
6ccbb6b51b ZTS fix. 2004-09-16 05:43:29 +00:00
Andi Gutmans
daa52df47a - Only 5.0.x news which we'll copy over before 5.1.0 release 2004-09-16 00:47:25 +00:00
Andi Gutmans
d098a077e4 - News 2004-09-16 00:46:20 +00:00
Andi Gutmans
d8efe626b5 - Fix bug #27669 (Dmitry).
Fixes:
<?
        class A
        {
                function hello()
                {
                        echo "Hello World\n";
                }
        }
        $y[0] = 'hello';
        A::$y[0]();
?>
2004-09-16 00:40:38 +00:00
5fc85f6c61 ChangeLog update 2004-09-16 00:33:09 +00:00
Uwe Schindler
5e1f396849 Fixed bug #29805 (HTTP Authentication Issues) 2004-09-15 21:28:30 +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
Ilia Alshanetsky
da136e6106 MFH: Fixed a bug causing ".123" * "90" and alike to return a 0. 2004-09-15 13:41:45 +00:00
Derick Rethans
c68f4bde30 - Windows support strcoll too. 2004-09-15 12:28:55 +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
7438337fdd ChangeLog update 2004-09-15 00:34:26 +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
Sara Golemon
34550382d8 Added stream_filter_remove() to cancel a stream filter.
Register filters as resources when
instantiated by stream_filter_(ap|pre)pend().

Export php_stream_filter_flush() internal function to wind buffered data
out of a particular filter until consumed by a later filter or sent to
stream->readbuffer or stream->ops->write()
2004-09-14 03:48:17 +00:00
41c4fd66d9 ChangeLog update 2004-09-14 00:33:34 +00:00
Sara Golemon
9cd4320b65 Allocating hash tables should be done via macro, not directly 2004-09-13 21:07:22 +00:00
Magnus M��tt�
17c77a54bf Add missing stream unregister for sslv2 and 3. 2004-09-13 18:30:30 +00:00
Stefan Esser
0f860d8f34 only allow valid arrays at this point 2004-09-13 16:00:23 +00:00
Dmitry Stogov
12752a4044 Change soap's ctors to __construct(),
rename SoapClient->__call() to SoapClinet->__soapCall().
2004-09-13 11:55:24 +00:00
Stanislav Malyshev
29fec3febc Antony Dovgal's error message improvement - #27290 2004-09-13 10:41:39 +00:00
dd12885897 ChangeLog update 2004-09-13 00:32:56 +00:00
Marcus Boerger
61bbeabdfa - Moe changed from .re to .c 2004-09-12 12:45:01 +00:00
Marcus Boerger
8564352f59 - Readd check for nested data (but correct this time) 2004-09-12 12:43:05 +00:00
Marcus Boerger
06ade1ab1c - Check for legal key types 2004-09-12 12:23:16 +00:00
Marcus Boerger
6200c9a5a1 - Remove wrong test 2004-09-12 11:51:13 +00:00
Stefan Esser
e7d698c7d8 New Rule: Never try to repair potential malicious user input 2004-09-12 10:45:14 +00:00
Antony Dovgal
e2568f0a4f 64-bit related changes
./configure will now behave differently if $ORACLE_HOME/lib32 exists
(this mostly happens at Solaris AFAIK)
2004-09-12 06:38:31 +00:00
Antony Dovgal
0e2100ca58 add PHP_CHECK_64BIT macro to be able to detect 64-bit platform in ./configure 2004-09-12 06:35:51 +00:00
49b1208120 ChangeLog update 2004-09-12 00:33:34 +00:00
Derick Rethans
4bae5cb4d0 - MFB: Added the sorting flag SORT_LOCALE_STRING to the sort() functions which
makes them sort based on the current locale. (Derick)
2004-09-11 14:22:35 +00:00