#485 test.inc - memory_limit

v2.15
closed
None
5
2012-09-17
2006-07-03
Danila Ulyanov
No

2.15-FINAL8
test.inc
Line: 117

During installation test.inc is not handling the case
when memory_limit is not set. When php is compiled
without the memory limit enabled,
get_ini('memory_limit') returns empty string, which
causes errors in return_bytes function.

Can fix it by adding:

if (strlen($memory_limit)) {
echo 'Ok';
} else

right before the first if

Discussion

  • Danila Ulyanov
    Danila Ulyanov
    2006-07-03

    Logged In: YES
    user_id=1198484

    Sorry - forgot that return_bytes was right after ini_get. So
    first check strlen, then do return_bytes if strlen > 0.