[php-src] master: [skip ci] Fix typos in PHP internal documentation (#24334)
| From: | Rafia Minhaj via GitHub | Date: | Wed, 14 Oct 2026 20:18:18 +0000 |
| Subject: | [php-src] master: [skip ci] Fix typos in PHP internal documentation (#24334) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142289@lists.php.net to get a copy of this message | ||
Author: Rafia Minhaj (Rafiaminhaj)
Committer: GitHub (web-flow)
Pusher: jorgsowa
Date: 2026-10-14T22:18:14+02:00
Commit: https://github.com/php/php-src/commit/03108515a6747b3d7cab8272d7bb797218730f05
Raw diff: https://github.com/php/php-src/commit/03108515a6747b3d7cab8272d7bb797218730f05.diff
[skip ci] Fix typos in PHP internal documentation (#24334)
- writing-tests.rst: Infact -> In fact
- writing-tests.rst: isnt't -> isn't
- fci-fcc.rst: transfered -> transferred
Changed paths:
M docs/source/core/data-structures/fci-fcc.rst
M docs/source/miscellaneous/writing-tests.rst
Diff:
diff --git a/docs/source/core/data-structures/fci-fcc.rst
b/docs/source/core/data-structures/fci-fcc.rst
index 2d87fde79fe7..85a10caaca1e 100644
--- a/docs/source/core/data-structures/fci-fcc.rst
+++ b/docs/source/core/data-structures/fci-fcc.rst
@@ -407,7 +407,7 @@ The FCC API is defined in `
Zend/zend_API.h`.
Mandatory field, the number of arguments that will be provided to this call to the function.
`consumed_args`:
- Specifies positional arguments whose ownership is transfered to the function being called. This
+ Specifies positional arguments whose ownership is transferred to the function being called. This
is used as an optimization to avoid an unnecessary
`Z_ADDREF_P()/zval_ptr_dtor()` when the
value is not used after the call. Only one argument can be specified at once with
`zend_fci_consumed_arg(n)` (zero-based), and the value must not be a reference.
Must be set to
diff --git a/docs/source/miscellaneous/writing-tests.rst
b/docs/source/miscellaneous/writing-tests.rst
index 40e273b6fd71..c589fed734bc 100644
--- a/docs/source/miscellaneous/writing-tests.rst
+++ b/docs/source/miscellaneous/writing-tests.rst
@@ -459,7 +459,7 @@ When creating temporary files it is a good idea to use an extension that indicat
file, eg .tmp. It's also a good idea to avoid using extensions that are already used for other
purposes, eg .inc, .php. Similarly, it is helpful to give the temporary file a name that is clearly
related to the test case. For example, mytest.phpt should create mytest.tmp (or mytestN.tmp, N=1,
-2,3,...) then if by any chance the temporary file isnt't removed properly it will be obvious
which
+2,3,...) then if by any chance the temporary file isn't removed properly it will be obvious
which
test case created it.
When writing and debugging a test case with a `--CLEAN--` section it is helpful to
remember that
@@ -1625,7 +1625,7 @@ section just stating a filename where to load the expected output from.
**Description:** Code that is executed after a test completes. It's main purpose is to allow
you to
clean up after yourself. You might need to remove files created during the test or close sockets or
-database connections following a test. Infact, even if a test fails or encounters a fatal error
+database connections following a test. In fact, even if a test fails or encounters a fatal error
during the test, the code found in the `--CLEAN--` section will still run.
Code in the clean section is run in a completely different process than the one the test was run
in.