RE: Creating custom superglobals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-08-14 at 10:45 -0400, KermodeBear wrote:
> Hello,
> 
> You CAN create custom superglobals, but it requires that you have RunKit
> enabled: http://us3.php.net/runkit

Which will make your application incompatible with any distribution
where runkit is not enabled :/ Which kinda sucks, I wish more stuff was
part of the core.

Cheers,
Rob.

> 
> HTH,
> K. Bear
> 
> > -----Original Message-----
> > From: Stut [mailto:stuttle@xxxxxxxxx] 
> > Sent: Monday, August 14, 2006 10:04 AM
> > To: Ville Mattila
> > Cc: php-general@xxxxxxxxxxxxx
> > Subject: Re:  Creating custom superglobals
> > 
> > Ville Mattila wrote:
> > > Does the PHP environment (5.1.4) provide a way to define 
> > some custom 
> > > variables as a superglobal? It would be useful for saving 
> > certain site 
> > > preferences and settings that must be referred in many 
> > variables and 
> > > classes, without every time writing global keyword at the 
> > beginning of 
> > > a function definition.
> > 
> > No, PHP does not allow userland to create superglobals. 
> > However, all global variables can be accessed through the 
> > $GLOBALS superglobal.
> > 
> > -Stut
> > 
> > --
> > PHP General Mailing List (http://www.php.net/) To 
> > unsubscribe, visit: http://www.php.net/unsub.php
> > 
> > 
> > 
> 
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux