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
Andrey Hristov
76a104feb8
colon written instead of semi-colon.
2002-10-03 13:03:21 +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
James Moore
df431074de
Keep comments and code in sync.
2002-10-03 11:56:10 +00:00
Stefan Esser
7b7c45dda2
Tell everyone that I am the ext/ftp maintainer...
2002-10-03 11:40:05 +00:00
Stefan Esser
4381225c1b
Added news entry about ftp_ssl_connect()
2002-10-03 11:38:03 +00:00
Stefan Esser
b220b7113f
Added ftp_ssl_connect() for FTP over SSL.
2002-10-03 11:33:05 +00:00
Zeev Suraski
d58c3dda96
Guys, please keep K&R.
2002-10-03 11:18:39 +00:00
Sebastian Bergmann
b169932d1c
Fix warnings.
2002-10-03 11:08:09 +00:00
Derick Rethans
dbc6935c16
- Fix descriptions
2002-10-03 11:00:13 +00:00
Derick Rethans
7ad71ed442
- Add highlight_string buffering test
2002-10-03 10:47:47 +00:00
Marcus Boerger
9f8b57fb57
typing
2002-10-03 10:44:13 +00:00
Derick Rethans
b6323ef5e2
- Add tests
2002-10-03 10:43:43 +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
Andrey Hristov
5084c5ecfc
Added some info about new functions and changed functionality in old ones.
2002-10-03 10:25:21 +00:00
Yasuo Ohgaki
b52edbddf9
Shouldn't enable implicit_flush like this.
...
Most problems are fixed. If you find internal function that does
not follow my comment, please fix it or let me know.
2002-10-03 09:57:53 +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
Yasuo Ohgaki
6c7202e116
Added comment for php_output_set_status().
...
Please use this function if you would like to prevent unwanted flush
by implicit_flush=On or ob_implicit_flush().
2002-10-03 08:54:13 +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
4fbf3f77c0
move gc_maxlifetime one up
2002-10-03 06:52:23 +00:00
Sascha Schumann
04b66595a7
Add recommened entries, including disabling the session bug/feature
2002-10-03 06:51:38 +00:00
Sascha Schumann
0ccb5d98b4
Add new session options
2002-10-03 06:49:33 +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
f534dc8f47
Added missing proto and foldings.
2002-10-03 04:17:41 +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
bec4574f57
Made some functions inline.
...
Added static for unexported functions.
2002-10-03 02:55:19 +00:00
Yasuo Ohgaki
22220d8983
Rename pg_data_seek() to pg_result_seek().
...
Give a correct credit for Marcus and Wez.
2002-10-03 02:41:19 +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