0

I developed very simple php extension, here's the source code:

https://github.com/jackey/nicequery

i did this:

phpize

./configure

make 

make install

no error output , everything's OK.

then i edited php.ini to enable it.

but got error "PHP Startup: Invalid library (maybe not a PHP library)".

i checked the source code very carefully but not found any problem. :(

So can you give me any idea to debug the error like that and help to check the code where's the problem is ?

i fall into the stupid hole :(

1 Answer 1

2

the problem is

#ifdef COMPILE_DL_EXTNICEQUERY

ZEND_GET_MODULE(nicequery)

#endif

it should be

#ifdef COMPILE_DL_NICEQUERY

ZEND_GET_MODULE(nicequery)

#endif
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.