com php-src: Fixed comments: ext/opcache/Optimizer/pass1.c ext/opcache/Optimizer/zend_optimizer.c
| From: | Dmitry Stogov | Date: | Thu, 03 Oct 2019 10:55:58 +0000 |
| Subject: | com php-src: Fixed comments: ext/opcache/Optimizer/pass1.c ext/opcache/Optimizer/zend_optimizer.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108699@lists.php.net to get a copy of this message | ||
Commit: c1de93efbe52934b13239da0301d9c959c3ff3c4
Author: Dmitry Stogov <dmitry@zend.com> Thu, 3 Oct 2019 13:55:58 +0300
Parents: 59c828a8c4cd7a1cbc59699e07d6bc2fdedff313
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c1de93efbe52934b13239da0301d9c959c3ff3c4
Log:
Fixed comments
Changed paths:
M ext/opcache/Optimizer/pass1.c
M ext/opcache/Optimizer/zend_optimizer..c
Diff:
diff --git a/ext/opcache/Optimizer/pass1.c b/ext/opcache/Optimizer/pass1.c
index c5677a7a69e..9b21d819aa7 100644
--- a/ext/opcache/Optimizer/pass1.c
+++ b/ext/opcache/Optimizer/pass1.c
@@ -22,7 +22,7 @@
/* pass 1 (Simple local optimizations)
* - persistent constant substitution (true, false, null, etc)
* - constant casting (ADD expects numbers, CONCAT strings, etc)
- * - simlple constant subexpression elimination
+ * - constant expression evaluation
* - optimize constant conditional JMPs
* - convert CAST(IS_BOOL,x) into BOOL(x)
* - pre-evaluate constant function calls
diff --git a/ext/opcache/Optimizer/zend_optimizer.c b/ext/opcache/Optimizer/zend_optimizer.c
index 23feb015961..2c814025b06 100644
--- a/ext/opcache/Optimizer/zend_optimizer.c
+++ b/ext/opcache/Optimizer/zend_optimizer.c
@@ -937,7 +937,7 @@ static void zend_optimize(zend_op_array *op_array,
/* pass 1 (Simple local optimizations)
* - persistent constant substitution (true, false, null, etc)
* - constant casting (ADD expects numbers, CONCAT strings, etc)
- * - simlple constant subexpression elimination
+ * - constant expression evaluation
* - optimize constant conditional JMPs
* - convert CAST(IS_BOOL,x) into BOOL(x)
* - pre-evaluate constant function calls