Edit report at http://bugs.php.net/bug.php?id=38506&edit=1

 ID:                 38506
 Updated by:         [email protected]
 Reported by:        contact-nospampleaz at fplanque dot net
 Summary:            enabling memory limit in windows builds
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   wiin XP
 PHP Version:        5.1.5
-Assigned To:        
+Assigned To:        johannes
 Block user comment: N
 Private report:     N

 New Comment:

memory_limit was changed in that regard some time ago.


Previous Comments:
------------------------------------------------------------------------
[2006-08-23 19:40:51] contact-nospampleaz at fplanque dot net

Okay Derick, sorry for formulating this the wrong way around.



I guess this is a little feature/change request to the windows builds.



Would it be possible to enable memory limit in windows builds?



I could not find a reason to why it's not enabled in the manual.



A lot of PHP developers develop on Windows and then upload to a Linux
server. Those developpers can't check for memory problems until it is
too late. I think this results in a lot of memory inefficient code,
because so many developpers have no way to easily check on the memory
usage.



I also think most PHP devs on windows cannot help themselves here
because they don't have the skills to recompile PHP and uploading to
Linux every time is not efficient for them.

------------------------------------------------------------------------
[2006-08-20 08:29:19] [email protected]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

memory limit is not enabled in our windows builds, which is a
requirement for this function.

------------------------------------------------------------------------
[2006-08-19 00:06:47] contact-nospampleaz at fplanque dot net

Description:
------------
I was expecting to use enable memory_get_usage() on windows.

It's still not compiled into version 5.1.5 win32. (Although someone said
it would).



I would request this for the 4.x branch too. 



No wonder so much PHP code is not memory efficient if windows devs have
no way of checking on it. PHP devs on windows are not going to recompile
PHP themselves. Doesn't fit the profile! :>

Reproduce code:
---------------
echo memory_get_usage();

Expected result:
----------------
a value

Actual result:
--------------
Fatal error: Call to undefined function memory_get_usage() in
c:\www\b2evo\blogs\inc\_misc\_misc.funcs.php on line 1961


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=38506&edit=1

Reply via email to