diff options
| author | Christian Göttsche | 2024-05-29 20:38:27 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-06 16:28:33 +0200 |
| commit | 087590b889fc2746c1392fe0b36984ed3ec1e3b0 (patch) | |
| tree | 9d329097f4d6dfb7e1ff134689ab1bcc20456182 /src | |
| parent | 7b6fba417004fc9f5d17bcec1dd6be63f568ae8d (diff) | |
Fix misc typos
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_session.c | 2 | ||||
| -rw-r--r-- | src/sp_var_parser.c | 2 | ||||
| -rw-r--r-- | src/tests/broken_configuration/broken_conf_line_no_closing.phpt | 2 | ||||
| -rw-r--r-- | src/tests/unserialize/unserialize_wrong_call.phpt | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/sp_session.c b/src/sp_session.c index c97101c..228e581 100644 --- a/src/sp_session.c +++ b/src/sp_session.c | |||
| @@ -108,7 +108,7 @@ static void sp_hook_session_module(void) { | |||
| 108 | 108 | ||
| 109 | static PHP_INI_MH(sp_OnUpdateSaveHandler) { | 109 | static PHP_INI_MH(sp_OnUpdateSaveHandler) { |
| 110 | #if PHP_VERSION_ID < 70100 | 110 | #if PHP_VERSION_ID < 70100 |
| 111 | /* PHP7.0 doesn't handle well recusively set session handlers */ | 111 | /* PHP7.0 doesn't handle well recursively set session handlers */ |
| 112 | if (stage == PHP_INI_STAGE_RUNTIME && | 112 | if (stage == PHP_INI_STAGE_RUNTIME && |
| 113 | SESSION_G(session_status) == php_session_none && s_original_mod && | 113 | SESSION_G(session_status) == php_session_none && s_original_mod && |
| 114 | zend_string_equals_literal(new_value, "user") == 0 && | 114 | zend_string_equals_literal(new_value, "user") == 0 && |
diff --git a/src/sp_var_parser.c b/src/sp_var_parser.c index c7562f3..e674505 100644 --- a/src/sp_var_parser.c +++ b/src/sp_var_parser.c | |||
| @@ -59,7 +59,7 @@ static int create_var(sp_tree *tree, const char *restrict value, | |||
| 59 | var_node->next = NULL; | 59 | var_node->next = NULL; |
| 60 | var_node->idx = NULL; | 60 | var_node->idx = NULL; |
| 61 | var_node->type = _type; | 61 | var_node->type = _type; |
| 62 | /* We consider `$` as part of the variable name, to tell them appart from | 62 | /* We consider `$` as part of the variable name, to tell them apart from |
| 63 | * php's constant | 63 | * php's constant |
| 64 | */ | 64 | */ |
| 65 | if (value && value[0] == VARIABLE_TOKEN && _type == CONSTANT) { | 65 | if (value && value[0] == VARIABLE_TOKEN && _type == CONSTANT) { |
diff --git a/src/tests/broken_configuration/broken_conf_line_no_closing.phpt b/src/tests/broken_configuration/broken_conf_line_no_closing.phpt index 8b06dc5..c0fbc03 100644 --- a/src/tests/broken_configuration/broken_conf_line_no_closing.phpt +++ b/src/tests/broken_configuration/broken_conf_line_no_closing.phpt | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Configuration line without closing parenthese | 2 | Configuration line without closing parentheses |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | --INI-- | 5 | --INI-- |
diff --git a/src/tests/unserialize/unserialize_wrong_call.phpt b/src/tests/unserialize/unserialize_wrong_call.phpt index afa42f6..70d91a5 100644 --- a/src/tests/unserialize/unserialize_wrong_call.phpt +++ b/src/tests/unserialize/unserialize_wrong_call.phpt | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Unserialize ok, but called with the wrong numeber of aguments | 2 | Unserialize ok, but called with the wrong number of arguments |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> |
