Skip to content

Installation fail #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stepzerosolutions opened this issue Jul 14, 2017 · 4 comments
Closed

Installation fail #89

stepzerosolutions opened this issue Jul 14, 2017 · 4 comments

Comments

@stepzerosolutions
Copy link

stepzerosolutions commented Jul 14, 2017

How to reproduce
Install the extension using pecl install ds
Add extension to php.ini file using extension=ds.so
sudo apache2ctl graceful
Installation success and I can see the extension so file in extension directory.

However when I run phpinfo() I can't see any extension details in the extensions section
When I try to run simple example http://php.net/manual/en/ds.examples.php it gives me error 500
details in error.log is

PHP Fatal error: Uncaught Error: Class 'Ds\Vector' not found in /var/www/html/test.php:2\nStack trace:\n#0 {main}\n thrown in /var/www/html/test.php on line 2

System details
Apache 2
Ubuntu 16:04

@rtheunissen
Copy link
Member

Did you add it to the correct .ini? What does php -m say?

@stepzerosolutions
Copy link
Author

stepzerosolutions commented Jul 14, 2017

It doesn't load ds. I've add it to correct php.ini /etc/php/7.0/apache2/php.ini
I'll come back to you later tomorrow.

Documentation says "Note: please load this extension after json extension,otherwise can't load this extension." do you know how to add it after json?

@stepzerosolutions
Copy link
Author

I get following error when I use php -v

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/ds.so' - /usr/lib/php/20151012/ds.so: undefined symbol: php_json_serializable_ce in Unknown on line 0

@rtheunissen
Copy link
Member

See #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants