Rasmus Lerdorf [Sun, 6 Oct 2002 08:39:05 +0000 (08:39 +0000)]
WS fix - although the entire libgd directory is horrendously formatted.
However, since we are forking existing code, fixing it would make it much
harder to merge any Boutell patches (if they ever come out with any).
Rasmus Lerdorf [Sun, 6 Oct 2002 07:19:07 +0000 (07:19 +0000)]
Ok, perhaps it's too late at night, but I see absolutely no reason for
this chunk of code here. Why is it writing a palette.map file to disk
in the middle of this function? Looks like leftover debug code, and this
particular code seems to be crashing on OSX as per bug #19704.
Rasmus Lerdorf [Sun, 6 Oct 2002 06:03:17 +0000 (06:03 +0000)]
As discussed a while ago, decoding GIF images is not considered a Unisys
LZW patent violation so we can distribute read-only GIF support with
our bundled GD2. The patent also expires in 2003, which is quickly
approaching, so we can roll in write support soon unless things change.
Melvyn Sopacua [Sat, 5 Oct 2002 19:44:26 +0000 (19:44 +0000)]
(xslt tests) Add test for new backend API (005.phpt), new function
(006.phpt) and a crash test (007.phpt)
006.phpt also tests handling of public entities, which is in
essence new to the extension, since there was no way to turn
it on.
# These new functions and backend will be added shortly.
# TODO: test for xslt_set_object
Melvyn Sopacua [Sat, 5 Oct 2002 14:04:19 +0000 (14:04 +0000)]
(xslt: error_print) Fixes a leak when multiple error messages are issued
during a transformation.
# It's probably better to wrap this in an internal function, since it's
# easily forgotten.
David Reid [Sat, 5 Oct 2002 11:26:17 +0000 (11:26 +0000)]
Add BeOS thread support to TSRM. This should not impact on any other OS's
but allows us to build PHP with threading support and therefore we can
build as an Apache 2 module.
The locking is currently done using benaphores but this may be reviewed.
Wez Furlong [Sat, 5 Oct 2002 10:35:13 +0000 (10:35 +0000)]
This seems to resolve the issues with fgets.
I've moved EOF detection into the streams layer; a stream reader
implementation should set stream->eof when it detects EOF.
Fixed test for user streams - it still fails but that is due to an output
buffering bug.
Brian France [Fri, 4 Oct 2002 22:16:16 +0000 (22:16 +0000)]
Fixed a problem where opendir with <path>/ and having <path>/ in
open_basedir ini option didn't work. It was removing the trailing
slashes and then addeding it back to only one of the string,
now it adds it back to to both if needed.
Marcus Boerger [Fri, 4 Oct 2002 21:19:51 +0000 (21:19 +0000)]
Return to old counting where every test is counted (even those of skipped
extensions). Inform about the number of extensions tested and skipped.
This makes the test summary more compareable.
Maybe i'll add a parameter/env-var to skip extension tests. That way we
could fasten tests for changes in the core. But it has to wait some days.
Sascha Schumann [Fri, 4 Oct 2002 18:21:40 +0000 (18:21 +0000)]
Improve the general behaviour of stream_gets and fix its semantics
with regard to sockets. The behaviour should be aligned with PHP 4.2 now.
This has been verified to some degree.
If the underlying stream operations block when no new data is readable,
we need to take extra precautions.
If there is buffered data available, we check for a EOL. If it exists,
we pass the data immediately back to the caller. This saves a call
to the read implementation and will not block where blocking
is not necessary at all.
If the stream buffer contains more data than the caller requested,
we can also avoid that costly step and simply return that data.
Melvyn Sopacua [Fri, 4 Oct 2002 11:41:34 +0000 (11:41 +0000)]
Improve testkit for xslt.
002.phpt and 003.phpt are regression tests for reported bugs.
004.phpt has been known to cause problems in some Sab/PHP combinations.
No known reports in bug db for that one.
Added skip mechanism
@- Added regression test for bugs #17791 and #17931 (Melvyn)
Rasmus Lerdorf [Fri, 4 Oct 2002 04:47:35 +0000 (04:47 +0000)]
As discussed, add --with-config-file-scan-dir compile-time switch defining
a directory which will be scanned for *.ini files after the main php.ini
file has been parsed. This makes it much easier to automatically deploy
a modular PHP since adding extensions which have their own ini switches can
now be done by simply dropping a foo.ini file in the right directory and
restarting. A list of parsed ini files is maintained and shown on the
phpinfo page.
Andrei Zmievski [Thu, 3 Oct 2002 18:30:27 +0000 (18:30 +0000)]
Revert the patch for now. We'll be branching on Saturday the way it's
implemented is a bit half-baked. We can always merge it into the branch
at a later point.