From 087590b889fc2746c1392fe0b36984ed3ec1e3b0 Mon Sep 17 00:00:00 2001
From: Christian Göttsche
Date: Wed, 29 May 2024 20:38:27 +0200
Subject: Fix misc typos
---
config/xenforo.rules | 2 +-
doc/source/changelog.rst | 2 +-
doc/source/cookies.rst | 2 +-
doc/source/debug.rst | 2 +-
doc/source/features.rst | 2 +-
src/sp_session.c | 2 +-
src/sp_var_parser.c | 2 +-
src/tests/broken_configuration/broken_conf_line_no_closing.phpt | 2 +-
src/tests/unserialize/unserialize_wrong_call.phpt | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/config/xenforo.rules b/config/xenforo.rules
index 9f29e1d..3ac8d96 100644
--- a/config/xenforo.rules
+++ b/config/xenforo.rules
@@ -1,4 +1,4 @@
-# This is a sample configuration for Snuffleupagus to accomodate Xenforo v2.2.12 on PHP 8.1
+# This is a sample configuration for Snuffleupagus to accommodate Xenforo v2.2.12 on PHP 8.1
# We keep the default configuration values commented out where they have been shown to be harmful
# Global configuration variables
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst
index 7d70498..d8724d0 100644
--- a/doc/source/changelog.rst
+++ b/doc/source/changelog.rst
@@ -47,7 +47,7 @@ Breaking Changes
Bug fixes
^^^^^^^^^
* Make it actually possible to configure sloppy comparison on latests PHP7
-* Allow file:// prefix in include() wich readonly_exec mode
+* Allow file:// prefix in include() with readonly_exec mode
* Fix a possible crash when exporting function list
* Fix a minor memory leak when parsing cookie-related configuration
diff --git a/doc/source/cookies.rst b/doc/source/cookies.rst
index 7d6ef24..2c71abd 100644
--- a/doc/source/cookies.rst
+++ b/doc/source/cookies.rst
@@ -37,7 +37,7 @@ It can either be set to ``strict`` or ``lax``:
- The ``lax`` attribute prevents cookies from being sent cross-domain for
"dangerous" methods, like ``POST``, ``PUT`` or ``DELETE``.
-- The ``strict`` one prevents any cookies from beind sent cross-domain.
+- The ``strict`` one prevents any cookies from being sent cross-domain.
::
diff --git a/doc/source/debug.rst b/doc/source/debug.rst
index b2a1f28..9ab4c29 100644
--- a/doc/source/debug.rst
+++ b/doc/source/debug.rst
@@ -11,7 +11,7 @@ Debugging crashes
.. _testsuite_fail:
-The testsuite is failling
+The testsuite is failing
-------------------------
We're using `php qa `__ tests format for our testsuite,
diff --git a/doc/source/features.rst b/doc/source/features.rst
index e9c3704..d7f6f7f 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -302,7 +302,7 @@ to restrict execution to users on the LAN for example. There are a *lot*
of different filters, so make sure to read the :ref:`corresponding documentation `.
Furthermore, running the `following script `_ will generate an hash and line-based whitelist
-of dangerous functions, droping them everywhere else:
+of dangerous functions, dropping them everywhere else:
.. literalinclude:: ../../scripts/generate_rules.php
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) {
static PHP_INI_MH(sp_OnUpdateSaveHandler) {
#if PHP_VERSION_ID < 70100
- /* PHP7.0 doesn't handle well recusively set session handlers */
+ /* PHP7.0 doesn't handle well recursively set session handlers */
if (stage == PHP_INI_STAGE_RUNTIME &&
SESSION_G(session_status) == php_session_none && s_original_mod &&
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,
var_node->next = NULL;
var_node->idx = NULL;
var_node->type = _type;
- /* We consider `$` as part of the variable name, to tell them appart from
+ /* We consider `$` as part of the variable name, to tell them apart from
* php's constant
*/
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 @@
--TEST--
-Configuration line without closing parenthese
+Configuration line without closing parentheses
--SKIPIF--
--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 @@
--TEST--
-Unserialize ok, but called with the wrong numeber of aguments
+Unserialize ok, but called with the wrong number of arguments
--SKIPIF--
= 80000) print "skip"; ?>
--
cgit v1.3