我想跑
app/console doctrine:schema:create --dump-sql
Run Code Online (Sandbox Code Playgroud)
在Ubuntu 16.04上使用Symfony 2.7和PHP7.上面的命令会引发以下错误:
[Symfony的\元器件\调试\异常\ UndefinedFunctionException]
尝试从命名空间"Doctrine\Common\Cache"调用函数"apc_fetch".
以下帖子列出了类似的问题 - 没有可行的解决方案(从我的角度来看)
我已php-apcu安装,php -m输出:
[PHP Modules]
apcu
calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
Run Code Online (Sandbox Code Playgroud)
输出 php …