PhP无法加载动态库ds.so

时间:2017-04-27 13:22:43

标签: queue php-7 pecl

我想使用Php queues并且我已经安装了Php-DS扩展程序。我使用的是PECL here。当我加载我的项目时,我收到以下错误:

Unable to load dynamic library '/usr/lib/php/20151012/ds.so' - /usr/lib/php/20151012/ds.so: undefined symbol: php_json_serializable_ce

我做错了什么?我使用的是PHP 7和Zorin OS。

1 个答案:

答案 0 :(得分:0)

MongoDB扩展有一个像这样的问题。您必须确保在它之前拉入json扩展,然后它就可以了。

如果要通过带有命名/编号.ini文件的目录添加此扩展名,请确保首先按字母顺序列出json引用文件,以便首先找到并包含该文件。如果主php.ini文件中只有扩展列表,请再次确保override func viewDidLoad() { super.viewDidLoad() resetButtons() } func CheckWin() -> Bool { if button1.title(for: .normal) == button2.title(for: .normal) && button2.title(for: .normal) == button3.title(for: .normal) && button1.title(for: .normal) != "" { return true } else { return false } } @IBAction func buttonClick(_ sender: UIButton) { if sender.title(for: .normal) == "" { if player%2==0 { sender.setTitle("X", for: .normal) player += 1 turn += 1 label.text = "Player 'O' Turn" } else { sender.setTitle("O", for: .normal) player += 1 turn += 1 label.text = "Player 'X' Turn" } } if CheckWin() { resetButtons() } } func resetButtons() { button1.setTitle("", for: .normal) button2.setTitle("", for: .normal) button3.setTitle("", for: .normal) } 列在json.so之前