在mac中升级php时出错(error upgrading php in mac)
我正在运行OSX El Capitan(版本10.11.6)。
我安装了PHP 5.5。
Phpunit需要php5.6以及更多,所以我试图将我的php升级到5.6。 我做不到,所以我试试了php7。
我按照这些指南:
https://coolestguidesontheplanet.com/upgrade-php-on-osx/
https://php-osx.liip.ch/
Mac将PHP升级到5.6,但CLI php -v获得5.3.28?我目前用
php -v
输出的是:
PHP 7.0.12 (cli) (built: Nov 1 2016 10:21:11) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.12, Copyright (c) 1999-2016, by Zend Technologies with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
有趣的是,我的输出与
phpinfo();
当从Symfony项目中的某个地方调用时,仍然是PHP Version 5.5.36
有任何想法吗??
I am running OSX El Capitan (version 10.11.6).
I had php 5.5 installed.
Phpunit requires php5.6 and more so I tried to upgrade my php to 5.6. I couldn't do it so I gave php7 a try.
I followed these guides:
https://coolestguidesontheplanet.com/upgrade-php-on-osx/
https://php-osx.liip.ch/
Mac upgraded PHP to 5.6, but CLI php -v get 5.3.28?My current output with
php -v
is :
PHP 7.0.12 (cli) (built: Nov 1 2016 10:21:11) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.12, Copyright (c) 1999-2016, by Zend Technologies with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
Funny thing, my output with a
phpinfo();
when called from somewhere inside a Symfony project, is stillPHP Version 5.5.36
Any ideas??
原文:https://stackoverflow.com/questions/40613238
最满意答案
添加
display: block
到你a
元素。 默认情况下a
元素是inline
inline
元素,inline
元素的宽度取决于text-align
无效的内容,除非您在其容器中设置它。.address{ font-size:1.5em; text-align: center; display: block; }
Add
display: block
to youra
element. By defaulta
elements areinline
andinline
elements have width which depends on the content wheretext-align
won't have effect unless you set it inside their container..address{ font-size:1.5em; text-align: center; display: block; }
相关问答
更多-
以下是您正在寻找的代码,我希望:( 这些不是您正在寻找的机器人 ) .wrapper { text-align: center; height: 200px; width: 200px; border: 1px solid black; display: table; } .container { display: table-cell; vertical-align: bottom; }...
无法覆盖文本对齐:使用文本对齐:使用简单的HTML左对齐(Unable to override text-align: justify with text-align: left in simple HTML)[2023-12-03]
好的,这是一个非常奇怪的CSS属性。 我在这个问题的帮助下计算出来: text-align justify,无法重写 显然一个内联元素IGNORES文本对齐CSS,但它可以嵌入它们。 所以我的SPAN继承了justify,但是CSS渲染了IGNORES内联元素的文本对齐CSS。 为了解决这个问题,我添加了display: inline-block; 我的跨度。 真的,真的很离奇。 我不确定如何解决Chrome开发者问题。 我想这应该是一个bug? Ok, this is a VERY bizarre pro ...好的,我试过这种方式,它对我有用: