且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在OSX和PHP版本5.5.3中使用MAMP时,不会立即显示php编辑

更新时间:2023-02-22 20:19:38

如果您使用的是PHP版本5.5.3,则在MAMP偏好设置中有一个缓存. 同样的事情发生在我身上,我在那找到了解决方案:看到实时变化之间的MAMP时间

在您的MAMP目录中转到:/bin/php/php5.5.3/conf/php.ini
并评论Opcahe行:

There is a cache, in your MAMP preferences if you use the php version 5.5.3. The same thing happen to me, I found the solution there: MAMP time between seeing live changes

In your MAMP Dir go to : /bin/php/php5.5.3/conf/php.ini
And comment the Opcahe lines:

[OPcache]
;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
;  opcache.memory_consumption=128
;  opcache.interned_strings_buffer=8
;  opcache.max_accelerated_files=4000
;  opcache.revalidate_freq=60
;  opcache.fast_shutdown=1
;  opcache.enable_cli=1