Changeset [8b01e4915a0ddc5414bc3746680edc8097975ab2] by Fabrice Luraine

March 14th, 2011 @ 03:25 PM

Fix fatal error if memory_get_usage() isn't available. Now benchmark() only return execution time in this case.

memory_get_usage() might be unavailable before PHP5.2.1 if PHP wasn't compiled with option --enable-memory-limit.
Add tests to control benchmark() return.
https://github.com/sofadesign/limonade/commit/8b01e4915a0ddc5414bc3...

Committed by Fabrice Luraine

  • M lib/limonade.php
  • M tests/main.php
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Limonade is a PHP micro-framework.