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?

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.