Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying unsuccessfully to install id3 from PECL (tutorial). So, I did:

mkdir id3tmp
cd id3tmp
wget http://pecl.php.net/get/id3-0.2.tgz
tar -zxvf id3-0.2.tgz
pecl build

And here, I got the error:

error: initializer element is not computable at load time 
error: (near initialization for 'id3_functions[8]')

From google for this error I got very little, nothing significant.

How can I solve this error ? Or, How to successfully install id3 from PECL on Ubuntu ?

share|improve this question

2 Answers 2

The id3 module was last updated in 2004. The PHP/Zend API has changed several times from that date, so the module cannot be used with most recent PHP.

You can either fix it yourself, ask the author, or hire somebody to do it for you.

However I would suggest to just use some external tool to read/write ID3 tags from PHP using the system/exec/...

share|improve this answer
    
yes, very old. Now i use: code.google.com/p/php-reader/wiki/ID3v2 –  tasmaniski Apr 4 '13 at 14:04
up vote 0 down vote accepted

The error occurred because I had PHP 5.4 version (bug)

I downgrade my PHP version to 5.3 and now works.

share|improve this answer
    
There's no bug in PHP 5.4. The references ID3 PECL module is unmaintained and you should not be using it. Who know how many security bugs are in the code... –  oerdnj Apr 4 '13 at 17:33
    
I'm not saying that there was a bug in PHP :) just refer to more info. And yes, No one should use it. –  tasmaniski Apr 4 '13 at 18:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.