My situation:
(php 7.4 and phpstorm 2021.3 on macosx m1)
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
My problem:
Related
I read that there is a problem with PHP 7.2 and if you want to use ARGON2 you need to compile php using –with-password-argon2
In my case I'm using PHP 7.3.6
php -v
PHP 7.3.6 (cli) (built: Jun 22 2019 11:43:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.6, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans
If I try:
var_dump(password_hash('password', PASSWORD_ARGON2I));
it returns:
PHP Warning: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version of PHP)
More info: MacOS Sierra
I just upgraded my PHP version from PHP 5.59 to PHP 6 by following this answer
Upgrade php 5.5.* to php 5.6.* using apt-get
But I am getting a strange problem PHP -version on terminal result in
PHP 5.6.34-1+ubuntu14.04.1+deb.sury.org+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
but phpversion() is still retuning the old version which is
5.5.9-1ubuntu4.24
PHP
PHP 7.0.2 (cli) (built: Jan 7 2016 10:40:26) ( NTS ) Copyright (c)
1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015
Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
php-fpm
PHP 7.0.2 (fpm-fcgi) (built: Jan 7 2016 10:40:30) Copyright (c)
1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015
Zend Technologies
with Xdebug v2.4.0RC3, Copyright (c) 2002-2015, by Derick Rethans
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
There are no error message in php,nginx and php-fpm error log file, I only get a php-fpm crash report,
anybody know why this happened?
constants.php
<?
define('GREETING', 'Hello World');
?>
index.php
<?php
require("constants.php");
echo GREETING;
?>
This code gives me an error : PHP Notice: Use of undefined constant GREETING - assumed 'GREETING'
(Server 1 - Not Working) Ubuntu 14.04
PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
(Server 2 - Working) CentOS 6.3
PHP 5.4.13 (cli) (built: Mar 14 2013 08:57:49)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.
(Dev Environment - Working) Windows 8.1
PHP 5.5.9 (cli) (built: Feb 5 2014 13:02:39)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.5.3, Copyright (c) 2002-2014, by ionCube Ltd.
What could be the problem and how do I make it work for Server 1?
Previous programmer made used of short tags which turned the block into a comment
my environment
ubuntu 14.04 , php 5.5 , nginx 1.76
i am using both opcache and xcache concurrently
PHP 5.5.19-1+deb.sury.org~trusty+1 (cli) (built: Nov 19 2014 19:33:43)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v4.0.0-dev, Copyright (c) 2005-2013, by mOo
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
with XCache Optimizer v4.0.0-dev, Copyright (c) 2005-2013, by mOo
with XCache Cacher v4.0.0-dev, Copyright (c) 2005-2013, by mOo
with XCache Coverager v4.0.0-dev, Copyright (c) 2005-2013, by mOo
i am just wondering can i use both opcache and xcache at the same time .. i dont know whether this allowed or not ? I know that both do almost the same job, but not sure if that would make any difference on the performance and speed.
suggestions invited ? so can i use both ?
I have similar environment (Ubuntu 14.04, PHP 5.6, XCache 3.2, Apache). In my tests when Zend and XCache enabled, the response time is the same of the XCache only. When I disable XCache, and use only Zend OPcache the time resquest reduced in 10ms. Maybe you be try OPCache + Redis (for variables), or use only XCache if the time response not make diference for you.