ID: 38087 User updated by: c00lways at gmail dot com -Summary: smart memory usage... Reported By: c00lways at gmail dot com Status: Open Bug Type: Feature/Change Request Operating System: any PHP Version: 5.1.4 New Comment:
runapplication.php line 23: public main() line 24: $x = new myclass(); myclass.php line 5: class myclass() line 7: public function myclass() { line 27: $mycon = mysql_connect( ... ); Previous Comments: ------------------------------------------------------------------------ [2006-07-13 07:05:14] c00lways at gmail dot com Description: ------------ php has been my favorites language. i would like to propose 2 features that i think will perfect it even better :D 1st. smart memory management: why? : i suggest this feature because i find that php have many functions which takes data directly into 1 variable, whereby the server memory might not be able to support / become slow.. suggestion: where user can specify the limit of memory for soft and hard limit. soft limits means # ram memory that it will use, where it depends on the system to assign the memory as usual. if the user exceeds the soft limit, user data will be written to file / temporary file, which is done in php. hard limit will limit the maximum of memory assigned to system + maximum file / temporary file memory it will produce for each processes. in memory wise, i suggest sqlite as the memory database, where it's very fast for this job. ========== 2nd features: advance debugging feature: i find that php debugging, especially for web based applications seems to continue running althought there is error ( example: database connection / query problem ) which can cause something to go terribly wrong.. it would be better to allow a setting for user to halt on error. 2nd. php should show friendly debugging output , just like in java having. where by, it will show multiple level of execution tree until it reaches the line which causes the error.. example: runapplication.php line 23: public main() line 24: $x = new myclass(); line 5: class myclass() line 7: public function myclass() { line 27: $mycon = mysql_connect( ... ); this above would be really useful. hope this features could be implemented :) thank you very much. best regards, James Expected result: ---------------- shown in description ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38087&edit=1