-
Notifications
You must be signed in to change notification settings - Fork 95
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
Error after add extension=ds.so to php.ini #2
Comments
There is currently a hard dependency on the Try enabling the json extension, or specifying |
@rtheunissen thanks for the quick response. Unfortunately
I check in |
What's your output for |
I think it's just a loading order issue, potentially more than one .ini What's your output for |
@rtheunissen ok,
Thanks for help 👍 |
@rtheunissen #34 fixed the loading order issue for static builds. I guess to fix it for so's we should add
to the config.m4. |
The w32 variant is |
Hello. I'm facing this issue too. But the extension is awesome. Thanks you guys. 😄 |
Seems like the only solution is to not add What's interesting here is that I'm only seeing this issue when I'm using a release build of PHP, ie. when I'm not building PHP myself. When I use phpbrew to build and install, adding to the main |
I've added a note in README.md, not much else that can be done. |
I was getting the same Unable to load dynamic library ... undefined symbol: php_json_serializable_ce issue as @itcraftsmanpl on Linux Mint, regardless of whether I installed using pecl install ds or did git clone and built the code. Changing /etc/php/7.0/mods-available/ds.ini to be:
and then doing
worked, but only after I manually removed all the 20-ds.ini symbolic links. Thanks so much for this extension! |
I'm facing this issue too :( . I've used the trick of naming the file 30-ds.ini (and ensured that there is not any 20-ds.ini file anywhere), but the problem is happening anyway. I'm working with PHP7.0, and Ubuntu 16.04. I've installed the extension through PECL. And.. the JSON extension is also installed and loaded. |
Well, I found that even though I edit /etc/php/7.0/mods-available/ds.ini to look like:
And even though I first did
This did not remove the 20-ds.ini symbolic links
So that after I edited /etc/php/7.0/mods-available/ds.ini to be:
instead of
and even after I did
before doing
The old 20-ds.ini symbolic links were still present, and I had to manually remove them by hand. Then the error message went away, |
Well, I found that even though I edit /etc/php/7.0/mods-available/ds.ini ; configuration for php ds module And even though I first did $ sudo phpdismod ds This did not remove the 20-ds.ini symbolic links $ cd /etc/php/7.0/ ./apache2/conf.d/20-ds.ini So that after I edited /etc/php/7.0/mods-available/ds.ini to be: ; configuration for php ds module instead of ; configuration for php ds module and eve after I did $ sudo phpdismod ds before doing $ sudo phpenmod ds The old 2-ds.ini symbolic links were still present, and I had to This showed that there were both 20-ds.ini and 30-ds.ini symbolic links. On 10/20/2016 08:51 AM, Andreu Correa Casablanca wrote:
|
@castarco After ensure that you put a |
@yybalam I haven't any line like this one in my php.ini file. I've looked for it with P.D.: I'm working only with the PHP CLI, I'm not using (nor installed) PHP-FPM nor phpmod for Apache. |
Do
|
@kkruecke I've did it before. This is the result:
|
Are you using |
Hi @rtheunissen , yes. I'm using this option, and sometimes I use dynamic loading, with a call to |
I am running Linux Mint 18. Neither Ubuntu nor Mint 18 does use one $ sudo phpenmod ds ./apache2/conf.d/30-ds.ini On 10/20/2016 08:43 PM, Rudi Theunissen wrote:
|
I ran into this problem on centos7 / php7. I had to make an INI file called z_ds.ini and not 30-ds.ini like suggested earlier in the thread. In centos7/php7, the /etc/php.d/ files do not have numeric prefixes for easy ordering, hence why I had to prefix with z_. Good luck. |
This is so infuriating, how are other extensions not also running into this problem / how is this still a thing? Thanks for all the feedback here everyone, I'm going to link the readme directly to this issue. |
@rtheunissen - Other extensions are also suffering from this. The issue is with distribution's PHPs not doing the standard PHP thing. I have written an explanation at https://derickrethans.nl/undefined-symbol.html about the how and why. |
I had this problem too and I was a little stupid, actually when removing dirty symbolic links, do not forget to remove it for CLI too and not only for Apache/Nginx. I had the error "php_json_serializable_ce" (described sooner in this topic) and I solved it like this:
|
I'm using Fedora 25 (PHP 7.0.20) and I have had the same problem. Just creating a new config file Inside the file, just |
I am using ubuntu and having the same problem with PHP 7.0.18 |
This is not a bug, just the nature of how some distributions handle their INI loading. |
On Ubuntu 18.04 and faced this issue. |
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php71/ds.so' - /usr/lib64/php71/ds.so: undefined symbol: php_json_serializable_ce in Unknown on line 0 - php-ds/ext-ds#2 - php-ds/ext-ds#34
This is currently the best resource related to this problem: https://derickrethans.nl/undefined-symbol.html I have re-opened it because I am now facing this issue myself. 😂 |
I created a patch that uses but somewhy that did not work out somehow, need to work more on that, so i also went with the easier approach, changing load order of modules :) |
Well, it appears this problem hasn't disappeared in 2020 either, at least not under Windows:
I have developers using *nix and doze, so need this stuff working on both platforms. Ah you say, just include the composer package. I need to put explicit compliance to ext-ds in composer requires for performance reasons. Ergo it baulks if it can't find the extension. So - any suggestions on how to fix this in 'Doze 10? |
@chippyash |
@rtheunissen On windows 10 you can specify
I'm wondering if it is a similar problem to the AMQP issue. That fails unless you have 'rabbitmq.4.dll' in PHP_ROOT. Does that spark anything with anyone? |
encountered this issue too, fixed it by creating a symlink called |
On my laptop, Ubuntu LTS changing |
You can |
My code is
I got this error message
then I found ds need load after json,so I use the steps to repair it.(I use php7.4 in ubuntu)
edit its content
then make a link
remove or make a notes from php.ini
|
If i run command
Then Ds extension works ok. But when i want add this line to php.ini:
Then php throw error:
My PHP version:
PHP 7.0.3 on Ubuntu 14.04
The text was updated successfully, but these errors were encountered: