Marcus Boerger [Sun, 29 Dec 2002 15:31:00 +0000 (15:31 +0000)]
Add a default handler that makes handler parameter to open functions
optional.
@Improved dba extension (Marcus)
@-Made handler parameter of dba_(p)open() optional.
@-Added php.ini option 'dba.default_handler' to specify a default handler.
Ilia Alshanetsky [Fri, 27 Dec 2002 22:47:06 +0000 (22:47 +0000)]
Added apache_get_version() & apache_get_modules() to Apache 1.X & Apache
Hooks sapis.
Made the module listing in Apache 2 not show the '.c' portion, to be
consistent with Apache 1.X.
Ilia Alshanetsky [Fri, 27 Dec 2002 22:02:17 +0000 (22:02 +0000)]
Added MINFO() to Apache 2, which displays the Apache version & all of the
loaded Apache modules.
Added apache_get_version() & apache_get_modules() functions.
Ilia Alshanetsky [Tue, 24 Dec 2002 17:20:33 +0000 (17:20 +0000)]
A variety of CS style fixes, which include:
* Changed all argument parsing to use the new zend_parse_parameters()
* If a function is unavailable due to lack of support for a certain feature,
do not make the function avaliable, rather then making it print an error
saying that the functionality offered by the function is not avaliable.
* Lots of WS fixes all over the file.
* Change strcpy() to strncpy() to prevent possible buffer overflows.
Fixed a bug in ncurses_pair_content(), 1st parameter was wrong.
Fixed several function prototypes that failed to indicate that functions
accepted arguments by reference.
Wez Furlong [Sun, 22 Dec 2002 18:05:36 +0000 (18:05 +0000)]
Fix for Bug #21131: fopen($file, 'a+') would incorrectly assume that
the stream position was at offset 0.
This corrects that assumption by querying the stream for it's position
when it detects the 'a' "flag" in the mode parameter to fopen.
Also added a test for plain files and amended the userstreams test to
take this into account.
Wez Furlong [Sun, 22 Dec 2002 13:55:45 +0000 (13:55 +0000)]
A Simple fix for Bug #12360 (fsockopen timeout doesn't work).
Analysis:
On systems with HAVE_GETADDRINFO and IPV6 support, php_hostconnect would
attempt to connect to each possible address that matched the requested IP.
If the remote host:port combination are dropping packets this would cause the
first connection to timeout (after waiting for the full timeout duration).
PHP would then attempt the second address and wait the full duration again.
Solution:
If the first connection attempt times out, abort the connection loop.
Sara Golemon [Fri, 20 Dec 2002 18:34:56 +0000 (18:34 +0000)]
Minor clarification in meaning of bitmask constants
/* PHP_DNS_xx = 1<<(T_xx-1) */
T_CNAME = 5 ergo PHP_DNS_CNAME should be 0x00000010.
T_SOA = 6 ergo PHP_DNS_CNAME should be 0x00000020.
Ilia Alshanetsky [Fri, 20 Dec 2002 17:16:31 +0000 (17:16 +0000)]
When low & high are the same return an array containing the low value.
Added support for float values and handling of numeric values being passed
as strings.
Added a test case for range().
Marcus Boerger [Fri, 20 Dec 2002 16:34:42 +0000 (16:34 +0000)]
-disable uniqid() when required lib functions not available
-emit an error when uniqid() will fail
-make more_entropy parameter default to true for CYGWIN
Wez Furlong [Thu, 19 Dec 2002 20:23:50 +0000 (20:23 +0000)]
Correct mistake introduced by my last commit on these files;
*_from_pipe() is for process-pipes created by fopen, not generic pipes
created from proc_open().
Correctly implemented the fifo/pipe check for *_from_file() and it seems
to be working correctly now.