diff options
| author | Sascha Schumann <sas@php.net> | 2001-08-03 08:49:19 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2001-08-03 08:49:19 +0000 |
| commit | 7471943c064e93cc9caafda6044e7190a762a477 (patch) | |
| tree | ca64c9f5a5c7628b1b8779db366674046868a8e5 /ext/standard/basic_functions.c | |
| parent | e206bd33746b3d5079b3b25468a613e917c8a520 (diff) | |
| download | php-git-7471943c064e93cc9caafda6044e7190a762a477.tar.gz | |
Replace our strtok implementation with a binary-safe one which code
does not cause headaches when reading it. Also happens to be a bit quicker.
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7848552f1d..8cea4eeac0 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -847,6 +847,7 @@ PHP_MSHUTDOWN_FUNCTION(basic) PHP_RINIT_FUNCTION(basic) { + memset(BG(strtok_table), 0, 256); BG(strtok_string) = NULL; BG(locale_string) = NULL; BG(user_compare_func_name) = NULL; |
