From:             
Operating system: Windows
PHP version:      5.3.2
Package:          *General Issues
Bug Type:         Bug
Bug description:About Predefined Variables ($_POST, $_GET...)

Description:
------------
Hey guys...



I didn't find another place in the website to say that... It's not exatly a
bug, it's more for a suggestion for upgrading PHP.



We have the predefined variables and the ways to access it...

I think that a better way to access these variables would be as an object.

Or better, it could be both ways.



We usually access these variables with $_POST['data'], or session values
like $_SESSION['user'], or $_REQUEST['birthday']...

We could make these variables objects, like $_POST->data, $_SESSION->user,
or $_REQUEST->birthday...



For specific variables like $_FILES, it would be even better to access
data, like $_FILES->image->size.



That's something you could change in the next version of PHP.



Sorry to write it here, I didn't find another place to post this.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=52174&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52174&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52174&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52174&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52174&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52174&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52174&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52174&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52174&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52174&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52174&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52174&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52174&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52174&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52174&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52174&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52174&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52174&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52174&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52174&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52174&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52174&r=mysqlcfg

Reply via email to