summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp_session.c2
-rw-r--r--src/sp_var_parser.c2
-rw-r--r--src/tests/broken_configuration/broken_conf_line_no_closing.phpt2
-rw-r--r--src/tests/unserialize/unserialize_wrong_call.phpt2
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
109static PHP_INI_MH(sp_OnUpdateSaveHandler) { 109static 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--
2Configuration line without closing parenthese 2Configuration 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--
2Unserialize ok, but called with the wrong numeber of aguments 2Unserialize 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"; ?>