php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23248 leak()
Submitted: 2003-04-16 18:23 UTC Modified: 2003-04-16 18:36 UTC
From: prof_moriarty at veryfast dot biz Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.0 OS: win98
Private report: No CVE-ID: None
 [2003-04-16 18:23 UTC] prof_moriarty at veryfast dot biz
I'm actually using 4.2.3.
When i run the
get_defined_functions() function, the listing includes a mention to:

leak

So i tried it. But it doesn't actually seem to do anything. I entered a few arguements, but it still didn't complain (even notices!).
I tried looking it up in my manual (4.3.0), and on the online manual function list, but i can't actually find a reference to it anywhere.

So what does this ellusive function do, that means it doesn't warrent being documented.

And i don't think it's deprecated, because the mysql() function is also listed (but again, not in the documentation), and when it tried that out, it gave a notice saying it was depricated.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-16 18:36 UTC] alindeman@php.net
From funcsummary.txt

void leak(int num_bytes=3)
     Cause an intentional memory leak, for testing/debugging purposes

So, this function is used only in debugging situations and that is why it isn't documented.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 03:01:28 2024 UTC