2013-09-27 05:27
浏览 521


I am trying to learn how to create phars and i am getting this error and have no clue how to fix it. Any ideas?

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar '/myapp/build/myapp.phar', file extension (or combination) not recognised or the directory does not exist' in /Volumes/www/vhosts/myapp/create-phar.php:11
Stack trace:
#0 /Volumes/www/vhosts/myapp/create-phar.php(11): Phar->__construct('/myapp/build/my...', 256, 'myapp.phar')
#1 {main}
  thrown in /Volumes/www/vhosts/myapp/create-phar.php on line 11

I am following the code form this page: packaging your app with phar

图片转代码服务由CSDN问答提供 功能建议

我正在尝试学习如何创建phars并且我收到此错误并且不知道如何修复它。 任何想法?

 致命错误:未捕获异常'UnexpectedValueException',消息'无法创建phar'/ myapp/build/myapp.phar',文件扩展名(或组合)无法识别 或者目录不存在'在/Volumes/www/vhosts/myapp/create-phar.php:11 
Stack trace:
#0 /Volumes/www/vhosts/myapp/create-phar.php(11):  Phar-> __ construct('/ myapp / build / my ...',256,'myapp.phar')
#1 {main} 
抛出/ Volumes / www / vhosts / myapp / create-phar。  php在第11行


  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题