summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Villepinte <fabien.villepinte@cdbdx.biz>2019-04-19 17:41:19 +0200
committerGabriel Caruso <carusogabriel34@gmail.com>2019-04-19 13:11:50 -0300
commitbaa9669392136632c8f4a014a8ae4706da4b2ce5 (patch)
tree903d727f39f147ed58af534c253a637b6eea6414
parent994e20ec4f3169100b58b4bc48b3673a62bf5a3e (diff)
downloadphp-git-baa9669392136632c8f4a014a8ae4706da4b2ce5.tar.gz
Fix typo in comments
-rw-r--r--ext/opcache/Optimizer/pass1_5.c2
-rw-r--r--ext/spl/spl_directory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/pass1_5.c b/ext/opcache/Optimizer/pass1_5.c
index d16dd25b81..a0390a9443 100644
--- a/ext/opcache/Optimizer/pass1_5.c
+++ b/ext/opcache/Optimizer/pass1_5.c
@@ -521,7 +521,7 @@ void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx)
case ZEND_FETCH_IS:
// case ZEND_FETCH_FUNC_ARG:
case ZEND_FETCH_UNSET:
- /* convert FETCH $GLOBALS (global), FETCH_DIM $x into FETCH $x (glboal) */
+ /* convert FETCH $GLOBALS (global), FETCH_DIM $x into FETCH $x (global) */
if ((opline->extended_value & ZEND_FETCH_GLOBAL) != 0 &&
opline->op1_type == IS_CONST &&
Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING &&
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c
index 430d13011f..97f4429e8f 100644
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -1598,7 +1598,7 @@ SPL_METHOD(GlobIterator, __construct)
}
/* }}} */
-/* {{{ proto int GlobIterator::cont()
+/* {{{ proto int GlobIterator::count()
Return the number of directories and files found by globbing */
SPL_METHOD(GlobIterator, count)
{