PHP Extensions - Help Needed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
luwk
Forum Newbie
Posts: 1
Joined: Fri Oct 03, 2008 6:38 am

PHP Extensions - Help Needed

Post by luwk »

I am trying to build a simple PHP Extension which simply returns a string object.

I have followed the tutorial found on http://devzone.zend.com/node/view/id/1021 up until the deployment stage. Instead of deploying the compiled module in the PHP Ini directory, I copied it in the same folder where the test.php page is. Then I am loading the module using the dl()
method.

By using the extension_loaded() method I am making sure that the extension is loaded successfully, however when I try to execute the
GetMessage method found in the extension, the php compiler just crashes. ie. it stops compiling and does not issue any form of error
message.

I even tried to capture any exception thrown by calling the GetMessage() function from within a Try Catch block, however no exception is thrown, the compiler just crashes, or so it seems.

Any idea what I might be doing incorrectly? Since the Extension compiles successfully and the module files are created without error, can I consider that step done? Or can the problem reside in the original source?

Any help would be greatly appreciated.

Thanks and Regards,
Luke
Post Reply