#38087 [NEW]: smart memory usage...

From: Date: Thu, 13 Jul 2006 07:05:14 +0000
Subject: #38087 [NEW]: smart memory usage...
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99383@lists.php.net to get a copy of this message
From:             c00lways at gmail dot com
Operating system: any
PHP version:      5.1.4
PHP Bug Type:     Feature/Change Request
Bug description:  smart memory usage...

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 bug report at http://bugs.php.net/?id=38087&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38087&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38087&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38087&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38087&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=38087&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38087&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38087&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38087&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38087&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38087&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=38087&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=38087&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38087&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38087&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38087&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38087&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38087&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38087&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38087&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38087&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#99383) next »