Re: suggestion for next php version

From: Date: Wed, 19 Dec 2001 14:28:29 +0000
Subject: Re: suggestion for next php version
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-7916@lists.php.net to get a copy of this message
Using your code just brings back register_globals=on. Also no new function need to be added. See extract() for the thing you coded here... Please make suggestion using the bug system at http://bugs.php.net/ Classify your bug report as feature request. Goba [one webmaster@php.net] > i dono where to send suggestions on php itself so i took the liberty to send > it to u, please excuse me by advance if its unappropriate. > > I have a suggestion that i think would help in migrating to next php > versions using register_globals=0 > > to tranform new associative arrays like $_get to simple variables one can do > : > > foreach($_get as $Key => $Value){ > $$Key=$Value; > } > > this is quite simple, but if i would like to make it even more simple i'd do > a function called "CreateGetVars" > containing this piece of code and write : > > CreateGetVars(); > > but of course this wouldnt work because generated variables would only live > in and during this function executing time. > > now what if we create a new concept of function, lets call it "Alias" for > exemple, executing their code directly in the main process, this would act > just like if i did an include of a file containing some code, this could be > very useful to re-use pieces of code without retyping them making the code > even more light and easy to read. This would also allow to change methods > and coding inside aliases without having to change the main program using > them. > > I think this would add even more flexability to php, the current example > isn't the most persuasive due to its simplicity but in my small web > developper career i would have had cases and oportunities to use Alias > functions if it existed. > > excuse my english and thanks if u took the time to read this mail ;o) > > bye > > Fred > Developper > Kik it Productions > > > >

« previous php.mirrors (#7916) next »