Sebastian Bergmann
df472058e2
HAVE_MBREGEX awareness.
2002-10-06 09:29:54 +00:00
Zeev Suraski
de36720e0e
Begin the cleanup - remove ob_flush_all()
2002-10-06 09:06:24 +00:00
Rasmus Lerdorf
b832af75f0
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).
2002-10-06 08:39:05 +00:00
Rasmus Lerdorf
731943287f
Oops
2002-10-06 08:35:22 +00:00
Rasmus Lerdorf
409620351f
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 .
2002-10-06 07:19:07 +00:00
Rasmus Lerdorf
26b69a7d93
Fix for bug #19700 - code by Wez
2002-10-06 06:47:53 +00:00
Moriyoshi Koizumi
0601d1fc41
made messages more consistent
2002-10-06 06:37:47 +00:00
Moriyoshi Koizumi
55b591365f
Warnings for empty regular expressions
2002-10-06 06:21:34 +00:00
Rasmus Lerdorf
72d90fc41c
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.
2002-10-06 06:03:17 +00:00
Frank M. Kromann
797a0dc33c
Adding missing include path's to non TS projects
2002-10-06 02:14:22 +00:00
Frank M. Kromann
0d23670b30
Fixing comment allowing the module to compile again
2002-10-06 02:10:19 +00:00
Derick Rethans
b007bd0696
- Add parse_url() tests (expect will follow later)url_t.phpt
2002-10-05 20:28:35 +00:00
Melvyn Sopacua
9bb526c283
(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
2002-10-05 19:44:26 +00:00
Melvyn Sopacua
b83d7bbf8a
(xslt tests) Test for reference to a non-existing scheme handler.
2002-10-05 16:11:46 +00:00
Melvyn Sopacua
1fbef62ae9
(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.
2002-10-05 14:04:19 +00:00
Wez Furlong
9d5bab5a0d
EOF related fixes.
2002-10-05 10:59:35 +00:00
Wez Furlong
93f9eea77d
Revert. The problem lies elsewhere.
2002-10-05 10:58:55 +00:00
Wez Furlong
ae36c08b54
Fix Win32 build as PHP_CONFIG_FILE_SCAN_DIR is not #defined.
2002-10-05 10:55:54 +00:00
Wez Furlong
077fe52d8b
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.
2002-10-05 10:35:13 +00:00
Markus Fischer
945ccfa76a
- Remove superfluous E_WARNING if mysql_connect() fails; there's already
...
an E_WARNING a few lines above.
2002-10-05 00:54:31 +00:00
David Viner
4f98cc5a55
adding the xslt_set_object function (as per discussion on php-dev and
...
the newly created sab-php@gingerall.cz )
--dviner
2002-10-04 23:06:10 +00:00
David Viner
1665272cee
adding segfault detection as proposed by Lenar Lõhmus [lenar@vision.ee]
...
--dviner
2002-10-04 22:43:55 +00:00
Stefan Esser
4368b8e4ac
some FTP servers return 32bit port numbers.
2002-10-04 22:20:08 +00:00
Stefan Esser
87c0577a0c
some broken ftp servers return 32bit port numbers.
2002-10-04 21:58:39 +00:00
Sterling Hughes
df837e67c7
have implode use the smart_str_*() functions, this should speed things up
...
quite a bit...
2002-10-04 20:44:19 +00:00
Wez Furlong
c429805e0b
Make that error message more meaningful for systems like my SuSE 7.0 with
...
an apparently broken magic file.
2002-10-04 19:01:34 +00:00
Rasmus Lerdorf
5610e348ec
Kill a few more warnings
2002-10-04 18:03:29 +00:00
Rasmus Lerdorf
2ca6f26918
Kill warning
2002-10-04 18:01:52 +00:00
Marcus Boerger
3d6ecdeff0
return FALSE on error
2002-10-04 17:17:01 +00:00
Sander Roobol
e6e2c1c70d
Fixed a bug in the new implementation of str_repeat()
2002-10-04 17:10:51 +00:00
Derick Rethans
ec6713f1ca
- dot :)
2002-10-04 16:55:46 +00:00
Sterling Hughes
5605dcf7b6
fix a memory leak in implode()
...
# kept seperate from last commit on purpose.. ;)
2002-10-04 16:54:56 +00:00
Sterling Hughes
abc9991925
@ Make the glue argument to implode() optional, if it is not specified
...
@ default to using "". (Sterling)
2002-10-04 16:53:14 +00:00
Melvyn Sopacua
c4805ffeb1
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)
2002-10-04 11:41:34 +00:00
Melvyn Sopacua
7f1ad2395d
(xslt_set_error_handler) Fixes array 'fields' argument to contain correct
...
information.
Patch by Lenar Lohmus.
@- Fixed fields argument to contain correct info. (Lenar Lohmus)
2002-10-04 09:22:03 +00:00
Rasmus Lerdorf
989a61ed98
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.
2002-10-04 04:47:35 +00:00
Sean Bright
114dff39ce
Add missing ?>
2002-10-04 02:34:15 +00:00
Sascha Schumann
df0ea33d2b
peek at freebsd's libc and fix _php_math_basetozval
...
PR: #19733
2002-10-04 02:21:33 +00:00
Sascha Schumann
cfaffd2185
overflow check for _php_math_basetozval
2002-10-04 02:20:41 +00:00
Sascha Schumann
397277b8c3
Fix php_stat brokenness.
2002-10-04 01:05:03 +00:00
Sascha Schumann
fb84b3e1d0
remove trans_sid=1
2002-10-03 23:13:36 +00:00
Sascha Schumann
5db24fbb7b
20: rewriter uses arg_seperator.output for modifying URLs
...
21: rewriter handles <form> and <fieldset> correctly
2002-10-03 23:12:16 +00:00
Sascha Schumann
47cc29c9d1
19: serializing references test case using globals
...
18: rewriter correctly handles attribute names which contain dashes
2002-10-03 22:54:15 +00:00
Andrei Zmievski
a38123e756
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.
2002-10-03 18:30:27 +00:00
Andrey Hristov
52c529c5af
ws fixes.
...
#again :)
2002-10-03 18:15:18 +00:00
Sascha Schumann
eab0f5965f
code from ancient bug #5271
...
setting $_SESSION before session_start() should not cause segfault
2002-10-03 16:55:08 +00:00
Sascha Schumann
3998374a0d
invalid session.save_path should not cause a segfault
2002-10-03 16:49:52 +00:00
Sascha Schumann
61e47a342e
use_trans_sid should not affect SID
2002-10-03 16:43:44 +00:00
Sascha Schumann
8882b28e60
editing
2002-10-03 16:14:55 +00:00
Sascha Schumann
d661fa4b46
A script should not be able to modify session.use_trans_sid
2002-10-03 15:58:10 +00:00
Sascha Schumann
bb4f911035
There should not be any warning with regard to redefining SID
2002-10-03 15:52:36 +00:00
Sascha Schumann
dba3e4c7ad
Registering _SESSION should not segfault.
2002-10-03 15:48:18 +00:00
Sascha Schumann
d4e1ac6c26
Mini test cases for fixed segfaults
2002-10-03 15:39:29 +00:00
Sascha Schumann
5fe046c4c3
session_decode should not segfault
2002-10-03 15:33:00 +00:00
Sascha Schumann
e24247e632
Remove ob_start()
2002-10-03 15:19:55 +00:00
Sascha Schumann
16f54aaca8
Add test for unset($_SESSION["x"]); behaviour
2002-10-03 15:19:43 +00:00
Sascha Schumann
c4adf94fbd
make tests work with CLI
2002-10-03 15:11:01 +00:00
Sascha Schumann
7e03310a6a
Don't emit warning, if there is nothing to send
2002-10-03 15:10:36 +00:00
Ilia Alshanetsky
2ea2b662a4
Optimized str_repeat() function, it is now 10x faster on 1 byte multipliers
...
and 5-6x faster on multi-byte multipliers.
2002-10-03 13:59:31 +00:00
Yasuo Ohgaki
39b0eb9b22
Fixed broken code by Derick.
...
ob_implicit_flush() and ob_flush_all() are stopped working.
var_dump() and hightlisht_string() outputs buffer contents wrongly
with ob_implicit_flush().
Everyone should be happy now.
It was only OG(implicit_flush) interpretation issue after all.
2002-10-03 13:32:01 +00:00
Stefan Esser
8fae3d7a49
swapped conditions to correct the logic
2002-10-03 12:16:44 +00:00
Andrey Hristov
ae70a4e458
few ws fixes.
2002-10-03 12:06:52 +00:00
Stefan Esser
b220b7113f
Added ftp_ssl_connect() for FTP over SSL.
2002-10-03 11:33:05 +00:00
Marcus Boerger
9f8b57fb57
typing
2002-10-03 10:44:13 +00:00
Andrey Hristov
cebb0f76b8
ws fixes.
2002-10-03 10:42:57 +00:00
Derick Rethans
9b517c4b93
- Revert changed to implicit_flush behavior. The new behavior was not
...
intended in the first place.
2002-10-03 10:35:33 +00:00
Yasuo Ohgaki
b0fcd61207
Fixed broken higlight_string()
2002-10-03 09:19:31 +00:00
Stefan Esser
8827f8eca9
renamed ftp_async_* into ftp_nb_*
2002-10-03 09:10:24 +00:00
Jan Lehnardt
aadb0c910b
- Added wddx_serialize_type(). Allows users to cast values to WDDX types
...
@- Added wddx_serialize_type(). Allows users to cast values to WDDX types (jan)
2002-10-03 08:56:10 +00:00
Yasuo Ohgaki
1731767272
Prevent unwanted fluhsing.
2002-10-03 08:54:45 +00:00
Sascha Schumann
114c544b9b
Purge ini_set calls and replace through INI sections.
2002-10-03 08:07:21 +00:00
Andi Gutmans
b276a96f4b
- Fix ZTS build
2002-10-03 07:23:50 +00:00
Yasuo Ohgaki
0a6f5f9996
Update test
2002-10-03 07:19:27 +00:00
Yasuo Ohgaki
66a50c5373
Added ob_flush_all() that flushes bufferred contents until it actually
...
sent/printed.
@ Added ob_flush_all() that flushes all buffers. (Yasuo)
2002-10-03 07:17:14 +00:00
Sascha Schumann
13f5db1b67
Make the interpretation of gc_probability configurable by adding
...
session.gc_dividend. The probability of running gc on each request is then
gc_probability/gc_dividend.
2002-10-03 06:45:15 +00:00
Sascha Schumann
be319c721a
Reenable E_WARNING and test session.bug_compat_warn in addition.
2002-10-03 06:41:25 +00:00
Sascha Schumann
afb1458910
session_destroy resets the sid, so we need to set it again here
2002-10-03 06:33:19 +00:00
Sascha Schumann
356ea7ffbd
Verify PHP 4.2 compatibility: global is used albeit register_globals=0
2002-10-03 06:32:45 +00:00
Sascha Schumann
0ed434a13b
Use ZEND_SET_SYMBOL_WITH_LENGTH correctly (hopefully)
...
It strikes me as awkward that a Zend API user needs to take care of
doing the engine's reference counting.
This fixes a memory overrun in a testcase. All ZEND_SET_* calls
should be correct now.
2002-10-03 06:29:58 +00:00
Sascha Schumann
15b23945ad
(track_init) Use is_ref/refcount parameters of SET_SYMBOL macros
...
(save_current_state) Prevent a possible deadlock which occurs when
the track vars are inaccessible
2002-10-03 05:53:45 +00:00
Sascha Schumann
d4ef4079de
Verify PHP 4.2 compatibility: unset($c) with enabled register_globals
2002-10-03 05:06:01 +00:00
Yasuo Ohgaki
f6dfd6b184
Forgot 1 byte for \0
2002-10-03 04:56:54 +00:00
Yasuo Ohgaki
5f1bb18c36
Save memory
2002-10-03 04:54:01 +00:00
Sascha Schumann
8a586103fc
Align behaviour with 4.2 with regard to register_globals=1
...
session_register("c");
unset($c);
$c = time();
If a user unsets a global session variable, it is not a reference
to a $_SESSION slot anymore.
During serialization, PHP 4.2 will not find the respective entry in
$_SESSION and fall back to the global sym table.
2002-10-03 04:53:05 +00:00
Yasuo Ohgaki
22bf29384e
Move wrong output buffer usage check to ob_gzhandler init.
...
Export some output buffer functions.
2002-10-03 03:58:12 +00:00
Sascha Schumann
b9077e5a9d
Nuke PS(vars), we keep the state of registered session variables now
...
completely in PS(http_session_vars). This avoids bugs which are caused
by a lack of synchronization between the two hashes. We also don't need
to worry about prioritizing one of them.
Add session.bug_compat_42 and session.bug_compat_warn which are enabled
by default. The logic behind bug_compat_42:
IF bug_compat_42 is on, and
IF register_globals is off, and
IF any value of $_SESSION["key"] is NULL, and
IF there is a global variable $key, then
$_SESSION["key"] is set to $key.
The extension emits this warning once per script, unless told otherwise.
"Your script possibly relies on a session side-effect which existed until
PHP 4.2.3. Please be advised that the session extension does not consider
global variables as a source of data, unless register_globals is enabled.
You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn.
2002-10-03 03:23:02 +00:00
Yasuo Ohgaki
1b675aa690
Rename pg_data_seek() to pg_result_seek().
...
Added mysql_result_seek() which is alias of mysql_data_seek().
2002-10-03 02:32:09 +00:00
Yasuo Ohgaki
bd177ce7c1
Added ob_get_clean() and ob_get_flush().
...
Someone requested this feature before.
@ Added ob_get_clean() and og_get_flush(). (Yasuo)
2002-10-03 01:36:44 +00:00
David Reid
9b10843481
Add more BeOS support...
2002-10-02 23:52:08 +00:00
Daniela Mariaschi
69a6289e8c
syntax to avoid error while reading data from file in ibase_blob_import
2002-10-02 23:05:06 +00:00
Sascha Schumann
4ea4f294b6
Fix harmless memory leaks and simplify track_vars_init.
2002-10-02 21:51:32 +00:00
Andrey Hristov
83a0f20381
Making strrchr() binary safe.
...
Test case added.
2002-10-02 18:58:09 +00:00
Andrey Hristov
2092d80230
Making strstr() binary safe.
2002-10-02 18:41:55 +00:00
Andrey Hristov
b2d93b67fc
Ws fix. Forgot to add this in the previous commit.
2002-10-02 18:13:56 +00:00
Andrey Hristov
f02b1507dc
ws fixes.
2002-10-02 17:56:04 +00:00
Derick Rethans
f85e6fe51d
- Added CURLOPT_FTP_USE_EPSV option. (Patch by Alex Howansky
...
<alex@wankwood.com>)
2002-10-02 16:44:48 +00:00
Marcus Boerger
d4bba6d158
Revisted Wez patch: chunk_size 0 means cahce the whole output. So
...
we must apply the default before calling php_enable_output_compression().
I have left the default setting in the rinit function even though i do think
it is not necessary.
2002-10-02 15:02:16 +00:00
Colin Viebrock
f871f3870d
Fix for SRM module (and maybe others). Header rows are now not HTML
...
escaped, so make sure you do this yourself in the modules.
2002-10-02 14:27:32 +00:00
Harald Radi
afb75a45e9
fixes bugs #19156 and #19544
2002-10-02 12:53:51 +00:00
Yasuo Ohgaki
2300bddb9c
Fixed pg_escape_typea()
2002-10-02 06:30:40 +00:00