happy9335 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

undefined function memory_get_peak_usage() #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
  Running jaxl with php < 5.2 gives an error:

PHP Fatal error:  Call to undefined function memory_get_peak_usage() in 
/usr/share/php/jaxl/core/jaxl.class.php on line 153

  That's from jaxl-2.1.1.tar.gz.  As a workaround you can include in your php script:

if (!function_exists('memory_get_peak_usage')) {
    // needed as this function is only defined from php 5.2.0
    function memory_get_peak_usage()
    {
        return 0;
    }
}

That stops the crash, but I don't know what other implications it will cause.  
At minimum dumpStat() now provides no info.  Maybe the above workaround could 
be included right in the jaxl code?

Original issue reported on code.google.com by jesse.no...@gmail.com on 13 Jul 2011 at 5:38

GoogleCodeExporter commented 8 years ago
checking github, looks like this has been fixed in the development version 
(untested).

Original comment by jesse.no...@gmail.com on 13 Jul 2011 at 5:59

GoogleCodeExporter commented 8 years ago
Hello Friends,

I am no longer accepting issues/bugs on google code issue list.

Have any Question? Want to discuss? Need Help? Use Google Group/Forum.
https://groups.google.com/forum/#!forum/jaxl

Found something missing or a bug in the source code? Kindly report an issue.
https://github.com/abhinavsingh/JAXL/issues

Sorry for any inconvenience caused.

--
Abhinav

Original comment by mailsfor...@gmail.com on 12 Sep 2012 at 9:50