php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35553 Problem with --enable-memory-limit
Submitted: 2005-12-05 10:05 UTC Modified: 2005-12-05 13:26 UTC
From: clouard at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: clouard at gmail dot com
New email:
PHP Version: OS:

 

 [2005-12-05 10:05 UTC] clouard at gmail dot com
Description:
------------
With PHP 4.4.1 on Linux, using this configure command :

'./configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql' '--with-ldap' '--enable-memory-limit'

memory_get_usage does NOT work (fatal error, unknown function), phpinfo() does not return the memory limit even if set in php.ini.

After installing PHP 4.3.8 with the same configure command, it works perfectly.

I did not test any version between 4.3.8 and 4.4.1.

Is this a regression ?

Thanks,

Jean-Christophe Clouard.

Reproduce code:
---------------
<?php

echo memory_get_usage();

?>

Expected result:
----------------
3024256 // or any result

Actual result:
--------------
Fatal error: Call to undefined function memory_get_usage() in /srv/www/htdocs/test.php on line 3

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-05 10:44 UTC] tony2001@php.net
Works fine here.
Please run `make clean` before `make` and try again.
 [2005-12-05 13:21 UTC] clouard at gmail dot com
It did not work yesterday, it works today. I suppose PHP is not responsible for this, and I'm sorry to have reported this false bug.

Is it possible to delete the bug report, or at least remove personal information ?

Thanks.
 [2005-12-05 13:26 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 05 16:01:31 2024 UTC