]> granicus.if.org Git - php/commitdiff
Fixed comments
authorDmitry Stogov <dmitry@zend.com>
Mon, 10 Jun 2013 08:05:20 +0000 (12:05 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 10 Jun 2013 08:05:20 +0000 (12:05 +0400)
ext/opcache/ZendAccelerator.c

index 922fc91d27a5354830484dadd25e2022a8f64f02..875a4727a883fb964888812811bb6e1e31d3c8a5 100644 (file)
@@ -1617,10 +1617,12 @@ static zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int
                from_shared_memory = 0;
                persistent_script = compile_and_cache_file(file_handle, type, key, key_length, &op_array, &from_shared_memory TSRMLS_CC);
 
-               /* Something went wrong during compilation, returning NULL */
+               /* Caching is disabled, returning op_array;
+                * or something went wrong during compilation, returning NULL
+                */
                if (!persistent_script) {
                        SHM_PROTECT();
-                       return op_array; /* Presently always NULL, but not necessary in the future */
+                       return op_array;
                }
        } else {