Jump to content

[SOLVED] PHP extensioin access internal variables


castis

Recommended Posts

I've been using PHP for a long time now. And I've decided to get into creating my own extension. I'd like to know if theres a way to get access to PHP internal variables from inside the extension.

 

Id like to be able to use $_GET in a certain extension but I'd rather not pass it in by reference if I don't have to.

 

Anyone have a clue?

Link to comment
Share on other sites

What I mean by extension is... a php extension...? A bit of compiled code that is loaded in after the Zend engines initialization by means of a .dll or .so file.

 

I'm already pretty handy with both php and c and have an extension that gives you filterGet(), it's being called via filterGet($_GET, [arg, ...]); and i'd like to eliminate the first argument and grab $_GET straight from the engine.

 

thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.