castis Posted January 5, 2009 Share Posted January 5, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/139570-solved-php-extensioin-access-internal-variables/ Share on other sites More sharing options...
premiso Posted January 5, 2009 Share Posted January 5, 2009 What do you mean by extension? And what is the goal/purpose of the extension? Quote Link to comment https://forums.phpfreaks.com/topic/139570-solved-php-extensioin-access-internal-variables/#findComment-730116 Share on other sites More sharing options...
castis Posted January 5, 2009 Author Share Posted January 5, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/139570-solved-php-extensioin-access-internal-variables/#findComment-730124 Share on other sites More sharing options...
premiso Posted January 5, 2009 Share Posted January 5, 2009 I kind of figured that was what you wanted. http://www.phpfreaks.com/forums/index.php/board,19.0.html I would direct you there to get your question answered. Quote Link to comment https://forums.phpfreaks.com/topic/139570-solved-php-extensioin-access-internal-variables/#findComment-730152 Share on other sites More sharing options...
castis Posted January 5, 2009 Author Share Posted January 5, 2009 I have posted my question in the forum you linked to. Thank you. http://www.phpfreaks.com/forums/index.php/topic,232726.0.html Quote Link to comment https://forums.phpfreaks.com/topic/139570-solved-php-extensioin-access-internal-variables/#findComment-730187 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.