Commit Graph

14265 Commits

Author SHA1 Message Date
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
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
Magnus M��tt�
17c77a54bf Add missing stream unregister for sslv2 and 3. 2004-09-13 18:30:30 +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
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
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
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
Sara Golemon
955b43ba12 Add stream_wrapper_unregister()
Disables a wrapper (user-defined or built-in) for the life of the request.

Add stream_wrapper_restore()
Restores the wrapper originally defined at the time the request started
to the protocol name mentioned.
2004-09-10 20:45:35 +00:00
Sterling Hughes
58cb0d77a0 fix wrong check from return value, binary content should not be \0'd,
non-binary content should be \0'd.
2004-09-10 20:36:45 +00:00
Wez Furlong
0bc0ccce2b Fix Bug #29296: add explicit sslv2 and sslv3 transports 2004-09-10 11:43:47 +00:00
Dmitry Stogov
f8181ba7b5 SoapClient->__call() is renamed to SoapClient->__soap_call(). 2004-09-10 09:02:06 +00:00
Dmitry Stogov
f93560ddc9 Using php_libxml_xmlCheckUTF8() from ext/libxml. 2004-09-10 08:59:45 +00:00
Wez Furlong
751f67d5d1 avoid ANSI stdio when calling tempnam() to avoid limitations of AT&T libc. 2004-09-09 19:41:07 +00:00
Timm Friebe
8e5d8e6679 - Defaulted ini variable "sybct.deadlock_retry_count" to 0
# For details on why this was changed, see
# http://zend.com/lists/php-dev/200409/msg00108.html
2004-09-09 19:17:50 +00:00
Marcus Boerger
621795ef4b Fix __call's method signature 2004-09-09 09:53:53 +00:00
Marcus Boerger
8e56b3b6a6 Proper #ifdef'ing 2004-09-09 09:08:33 +00:00
Marcus Boerger
b16ae3b73a add new test 2004-09-09 07:46:19 +00:00
Sara Golemon
532a79aa52 *** empty log message *** 2004-09-08 23:37:55 +00:00
Rob Richards
da5ff5d9f1 fix issue with multiple xsl objects using registerPHPfunctions
- also fixes threading issue
2004-09-08 16:54:17 +00:00
Rob Richards
ccb99d0a1e implement php_libxml_xmlCheckUTF8
- workaround for pre libxml2-2.6.13 function
2004-09-08 10:15:41 +00:00
Sara Golemon
92c4a37a6a Chunk Length may optionally be followed by whitespace 2004-09-07 22:46:24 +00:00
Frank M. Kromann
aa25757136 Make it possible to return VideoStream and PrebuiltClip 2004-09-07 19:40:18 +00:00
Sara Golemon
a85bff9796 Protocol version context option and chunked transfer encoding 2004-09-07 19:27:11 +00:00
Dmitry Stogov
7e53511ec8 Make ext/soap work around libxml2 bug in xmlCheckUTF8 (2.6.7-2.6.13) 2004-09-07 14:34:46 +00:00
Rob Richards
963200c74c Fixed bug #29945 (simplexml_load_file URL limitation 255 char) 2004-09-06 10:16:34 +00:00
Marcus Boerger
2f5990a5c4 Touch 2004-09-05 17:44:15 +00:00
Marcus Boerger
338e3357ae - Bugfix #29985 2004-09-05 17:37:57 +00:00
Marcus Boerger
efea880e6f - Add some checks to unserialize() to prevent bufferoverflows 2004-09-05 17:16:02 +00:00
Marcus Boerger
91af7f394f - Add some checks when unserializing data to prevent buffer overflows 2004-09-05 16:29:05 +00:00
Andrey Hristov
945f7d68b9 remove "." at the end of messages 2004-09-05 13:27:58 +00:00
Moshe Doron
9632e324b6 make autogenerated docs happy (Friedhelm Betz) 2004-09-05 08:13:56 +00:00
Georg Richter
eb3900b77a forgot to remove comment in last commit 2004-09-04 14:16:52 +00:00
Marcus Boerger
ef3e8fa852 - Add link to chm version
- Change wording
2004-09-03 18:46:29 +00:00
Marcus Boerger
d265cdffbf - Fix protoe's 2004-09-03 18:39:30 +00:00
Marcus Boerger
4d3894178d Update docu 2004-09-03 06:16:34 +00:00
Ilia Alshanetsky
6ad651afbe Adjusted input check. 2004-09-03 03:35:22 +00:00
Frank M. Kromann
57f3b2504e Adding swfvideostreamp and swfprebuiltclipp, available in ming 0.3 2004-09-02 20:56:39 +00:00
Marcus Boerger
72000ecda9 Fix memleak in serialize 2004-09-02 18:28:47 +00:00
Marcus Boerger
94c4feef12 Fix test 2004-09-02 18:24:58 +00:00
Stanislav Malyshev
dbc1cb5e92 MF4: fix crash if shutdown uses file stats 2004-09-02 09:39:55 +00:00
Georg Richter
62ed6a0f2b fixed bug #29283 2004-09-02 04:53:01 +00:00
Ilia Alshanetsky
197d65770a Fixed bug #29925 (Added a check to prevent illegal characters in session
key).
2004-09-02 02:44:04 +00:00
Marcus Boerger
1cd7013517 Add new test for seeking 2004-08-31 20:54:31 +00:00
Marcus Boerger
819127b74b Fix seeking 2004-08-31 20:54:00 +00:00
Sara Golemon
579575e430 Use user_agent ini setting if it's available. 2004-08-31 20:11:18 +00:00
Joe Orton
0d3884fed1 Move global symbols defined by bundled copy of libgd into private
php_gd_* namespace, to avoid symbol conflicts with, for instance,
another Apache module which loads a different copy of libgd.
2004-08-31 16:41:29 +00:00
Antony Dovgal
fdb578219b this file shouldn't be in the repository at all 2004-08-31 08:31:09 +00:00
Ilia Alshanetsky
142ac728dd Added missing input validation to dio_write(). 2004-08-30 22:21:09 +00:00
Frank M. Kromann
a1cf684b55 Fif for #28047. Set correct debug options for debug_ts build 2004-08-30 19:01:58 +00:00
Rob Richards
a50166004d remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 17:29:22 +00:00
Rob Richards
02fa5aa0dc remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 15:07:20 +00:00
Rob Richards
d39cca1530 remove clone functionality 2004-08-30 14:59:30 +00:00
Ilia Alshanetsky
9996b5f731 Fixed leak when serializing protected & private properties. 2004-08-29 17:16:20 +00:00
George Schlossnagle
1901b9d90e A little cleanup on the language refinements. 2004-08-29 13:37:10 +00:00
Jan Lehnardt
d402f6fab3 - language refinements 2004-08-29 11:54:38 +00:00
Sergey Kartashoff
505144b844 - A fix for building of shared mnogosearch module 2004-08-29 10:59:33 +00:00
Marcus Boerger
1d1d20ced2 Add more docu 2004-08-29 10:33:24 +00:00
Antony Dovgal
fdb29f9fa5 fix leak 2004-08-29 06:10:47 +00:00
John Coggeshall
2f4ca9a2d4 Removed examples which don't actually work anymore for PHP 4, and
updated those that do for PHP 5.
2004-08-28 18:10:21 +00:00
Derick Rethans
52d6a64efa - Fixed bug #29873 (No defines around pcntl_*priority definitions). 2004-08-28 12:20:06 +00:00
Marcus Boerger
eeb4e150e7 Fix by (mathieu dot bruneau at argontechnologies dot ca) 2004-08-27 20:38:15 +00:00
Dmitry Stogov
dae2423d11 Fixed bug #29842 (soapclient return null value) 2004-08-27 07:07:46 +00:00
Ilia Alshanetsky
ee8a0fc8f8 Fixed a nasty resource/memory/disk-space leak when opening zlib files
via wrapper stacking ala compress.zlib://http://...
2004-08-26 23:36:05 +00:00
Marcus Boerger
b1d43bac61 Fix test: Classes cannot extend Interfaces 2004-08-26 22:58:12 +00:00
Marcus Boerger
5960786cc6 Add new test 2004-08-26 22:24:48 +00:00
Rob Richards
74259c9124 no longer experimental
update package info
2004-08-26 20:17:20 +00:00
Rob Richards
518145133f not experimental 2004-08-26 20:13:33 +00:00
Dmitry Stogov
855f3591a6 Memory leaks were fixed 2004-08-26 18:52:57 +00:00
Dmitry Stogov
0384e2ae27 Fixed bug #29839 (incorrect convert (xml:lang to lang)) 2004-08-26 18:43:06 +00:00
Dmitry Stogov
dedab09c32 Fixed bug #29839 (incorrect convert (xml:lang to lang)) 2004-08-26 18:40:10 +00:00
Dmitry Stogov
0835c34572 Fixed bug #29795 (SegFault with Soap and Amazon's Web Services)
Fixed bug #27994 (segfault with Soapserver when WSDL-Cache is enabled)
2004-08-26 15:26:32 +00:00
Dmitry Stogov
6078001f12 Merged bug fixes from PHP_5_0. 2004-08-26 12:24:54 +00:00
Ilia Alshanetsky
fe73e4d851 Fixed bug #29808 (array_count_values() breaks with numeric strings). 2004-08-26 00:26:19 +00:00
Andrei Zmievski
ace6ff598c MFB. 2004-08-25 20:48:48 +00:00
Georg Richter
616d49aaf6 test for local_infile_handler 2004-08-25 13:58:03 +00:00
Georg Richter
c8572b0bba changed local_infile_handler:
mysql client lib now uses php_local_infile functions by default, which allows
  to use php_fopen_wrapper: e.g. LOAD DATA LOCAL INFILE 'http://foo.com/bar.csv' ...

  mysql_set_local_infile_handler now only supports a callback function for read.
2004-08-25 13:57:35 +00:00
Christian Stocker
b96ebb376f if $doc->recover = true; set error_reporting to (old | E_WARNING)
This way, you can't silence XML parse errors with the @ character
2004-08-25 08:27:07 +00:00
Marcus Boerger
1d913a9c0b MFB: TSRM fix 2004-08-24 21:49:09 +00:00
Andrei Zmievski
f30355a7df MFB. 2004-08-24 20:58:59 +00:00
Frank M. Kromann
381d3f8e62 Add fbsql_rows_fetched() - returns the total number of rows fetched.
Fix a possible crash in fbsql_database() if the function was called before a connection was made.
2004-08-24 17:59:01 +00:00
Ilia Alshanetsky
f95c1df583 Fixed bug #29821 (Fixed possible crashes in convert_uudecode() on invalid
data).
2004-08-24 15:25:48 +00:00
Rob Richards
53d0c7a753 fix segfault when object cloned 2004-08-24 13:33:11 +00:00
Wez Furlong
bbd6dec20c Add support for the readline callback interface, allowing you to interleave
IO and user input.  Sample script:

<?php
dl("readline.so");

function handle_user_input($line)
{
   echo "You typed: '$line'\n";
   if ($line == 'exit')
      exit;
}

readline_callback_handler_install('type! > ', 'handle_user_input');

while (true) {
   $n = stream_select($r = array(STDIN), $w = null, $e = null, null);

   if ($n && in_array(STDIN, $r)) {
      readline_callback_read_char();
   }
}
2004-08-24 12:52:07 +00:00
Derick Rethans
0bfb0fad92 - No tabs here please 2004-08-24 12:28:46 +00:00
Wez Furlong
5ed8e63591 use dependent libs while probing for functions 2004-08-24 12:06:37 +00:00
Christian Stocker
ce65982ec1 This extension is no more experimental 2004-08-24 11:50:26 +00:00
Ilia Alshanetsky
4ca88997f7 Fixed possible crash inside dio_read(). 2004-08-23 17:27:33 +00:00
Ilia Alshanetsky
8eacea8b48 Fixed proto of headers_list(). 2004-08-23 16:58:11 +00:00
Timm Friebe
7035a224b5 - Fixed packet size setting
# Patch by Alex Kiesel
2004-08-21 17:54:11 +00:00
Andrey Hristov
dd5538566e fix for bug 26737 : private & protected member variables not serialized
when user defined __sleep() is declared. Additionally E_NOTICE is
being thrown if __sleep() returns a non-existing member variable name
2004-08-21 13:49:19 +00:00
Ilia Alshanetsky
3849411fa2 Adjust magic path ordering. 2004-08-20 15:11:49 +00:00
Ilia Alshanetsky
823e4029f7 MFB: Removed unneeded bits. 2004-08-20 13:53:16 +00:00
Ilia Alshanetsky
420a8cd50a Added /usr/share/misc/file/magic to the possible magic paths (used by Debian) 2004-08-20 13:48:19 +00:00
Ilia Alshanetsky
67e3288a5d Added more missing cURL options. 2004-08-20 00:55:56 +00:00
Antony Dovgal
ca28e37be1 fix #29737 in the right way with performance in mind 2004-08-19 15:14:04 +00:00
Antony Dovgal
e156ed7433 fix #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on error) 2004-08-19 13:59:29 +00:00
Christian Stocker
5950725144 fix for bug #29657 xml_* functions throw non descriptive error, compared to php4
fix for bug #29711 libxml and non iso-8859-1.
If no encoding specified, it defaults to UTF-8 now
2004-08-19 12:18:25 +00:00
Marcus Boerger
ba75dd7877 Fix issue in test 2004-08-19 08:04:20 +00:00
Marcus Boerger
308081cd11 - Implement #29728: Reflection API Feature: Default parameter value.
. ReflectionParameter::isDefaultValueAvailable()
  . ReflectionParameter::getDefaultValue()
2004-08-19 07:42:02 +00:00
Marcus Boerger
5e1a0f4c0c - Nedd to work on copy 2004-08-19 07:16:02 +00:00
Marcus Boerger
35fec42377 - Show default value of optional parameters of user defined functions. 2004-08-18 23:07:12 +00:00
Ilia Alshanetsky
5520636b17 Fixed bug #29727 (Added missing CURL authentication directives). 2004-08-18 21:27:24 +00:00
Ilia Alshanetsky
4d360ead0c Fixed bug #29594 (Use PHP's own tmpfile() implementation). 2004-08-16 23:07:42 +00:00
Marcus Boerger
041d23d7b6 - Fix bug #29447: Reflection API issues 2004-08-16 08:48:25 +00:00
Ilia Alshanetsky
60fc9c050a Fixed bug #29678 (opendir() with ftp:// wrapper segfaults if path does not
have trailing slash).
2004-08-16 01:41:14 +00:00
Marcus Boerger
44a9c3188e Make clear this is PDO support 2004-08-15 19:17:58 +00:00
Marcus Boerger
d16571328f Fix extension name 2004-08-15 15:56:33 +00:00
Marcus Boerger
295ae448b1 - Synch names with other extensions 2004-08-15 13:43:56 +00:00
Georg Richter
1c6f49006b fixed default for mysqli_fetch_array 2004-08-15 05:48:16 +00:00
Dan Kalowsky
206c05dc47 Checking in a patch by Dave Lawson (dlawson@masterytech.com) to correct
some of the behavior found in the odbc_fetch_*() functions.  This patch
NEEDS to be tested on MS Access before a release is done with it.  This
submission is to get it into the daily builds for testing.
2004-08-13 19:33:24 +00:00
Georg Richter
1593aa0e5e fixed bug #29656 (segfault on result and statement properties) 2004-08-13 16:25:29 +00:00
Antony Dovgal
e511b57e2a fix yet another annoying compile warning 2004-08-13 14:59:58 +00:00
Antony Dovgal
f370d0290f fix compile warning 2004-08-13 14:52:27 +00:00
Christian Stocker
e99c375606 Added DomDocument->recover property for parsing not well-formed XML Documents. 2004-08-13 12:32:55 +00:00
Georg Richter
8ff9528138 minor fix in mysqli_prepare: copying stmt errormessag to mysql structure 2004-08-12 22:14:06 +00:00
Chuck Hagenbuch
6639ab8469 More spaces -> tabs. 2004-08-12 19:31:36 +00:00
Ilia Alshanetsky
5b58b9af6b Properly fix the msgno check inside imap_fetchbody(). 2004-08-12 19:20:15 +00:00
Chuck Hagenbuch
0bf1525bc8 fix. 2004-08-12 18:01:45 +00:00
Andi Gutmans
0286913937 - Use FREE_HASHTABLE() 2004-08-12 06:17:42 +00:00
Marcus Boerger
5310de975c Change to use md5_file() 2004-08-12 00:38:01 +00:00
Ilia Alshanetsky
61d60153b2 Fixed memory leak. 2004-08-11 23:25:50 +00:00
Marcus Boerger
3bca709fbc Add missing module deps 2004-08-11 21:04:36 +00:00
Ilia Alshanetsky
af77fdb9bf It's stable now. 2004-08-11 20:31:39 +00:00