php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19506 some functions are not visble from "get_extension_funcs"
Submitted: 2002-09-19 16:23 UTC Modified: 2003-02-06 14:21 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: gilles_gros at yahoo dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.3 OS: Linux 2.4.19
Private report: No CVE-ID: None
 [2002-09-19 16:23 UTC] gilles_gros at yahoo dot com
using php 4.2.3 with out any problem.

Using a script to generate a help directory.


<?
function usort_cmp($a, $b) {
return (strtolower($a) == strtolower($b)) ? 0 : (strtolower($a) > strtolower($b)) ? 1 : -1;
}

echo "<UL>\n";
$le = get_loaded_extensions();
usort($le, "usort_cmp");
foreach($le as $module) {
print "<LI>$module\n";
print "<UL>\n";

$f = get_extension_funcs($module);
usort($f, "usort_cmp");

foreach($f as $func) {
print "<LI><a href='http://www.php.net/manual/en/function." . str_replace("_", "-", $func) . ".php'>$func</a>\n";
}
print "</UL>\n";

}
echo "</UL>\n";

?>

I noticed that some functions are missing from the list.
at least:
 - extension_loaded
 - get_extension_funcs
 - get_loaded_extensions

may be more, I have not cheched.

Gilles

============================
config.nice

#! /bin/sh
#
# Created by configure

CFLAGS='-L/home/gillesg/PRODUCT/Apache/libraries/mcrypt/lib' \
'./configure' \
'--prefix=/home/gillesg/PRODUCT/Apache' \
'--with-config-file-path=/home/gillesg/PRODUCT/Apache/conf' \
'--with-apache=/home/gillesg/Compil/devcompile/apache_1.3.26' \
'--enable-static' \
'--enable-track-vars' \
'--enable-magic-quotes' \
'--enable-trans-sid' \
'--enable-safe-mode' \
'--enable-sigchild' \
'--enable-session' \
'--with-mm=/home/gillesg/PRODUCT/Apache/libraries/mm' \
'--without-mysql' \
'--with-mcrypt=/home/gillesg/PRODUCT/Apache/libraries/mcrypt' \
"$@"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-19 16:24 UTC] gilles_gros at yahoo dot com
mispelled my address
 [2002-09-19 21:25 UTC] sniper@php.net
Those functions are not defined in any extension but in the Zend engine..maybe there should be another function to get all defined functions? :)

 [2002-09-20 02:53 UTC] sander@php.net
What's wrong with get_defined_functions()?
 [2002-09-20 02:56 UTC] gilles_gros at yahoo dot com
There is nothing wrong with get_defined_functions(), 
except that functions like:
 - extension_loaded
 - get_extension_funcs
 - get_loaded_extensions

are not returned by the script I submit.
Problem in the function or the definition of the function...

For you to decide.

Gilles
 [2002-09-20 07:02 UTC] sniper@php.net
This is just documentation issue. (I didn't remember get_defined_functions() at all)

 [2002-09-20 10:55 UTC] betz@php.net
get_defined_funcs works well, but get_extension_funcs does not returm any of the zend_builtin_functions.
This may not be only a documentation problem, maybe it should be fixed in the source, because get_extensions_funcs
could not be "trusted". The module name standard is misleading, as long as zend_builtin_functions are standard functions (zend_builtin_functions.c), but not treated as those by get_extension_funcs.
 [2003-01-21 02:59 UTC] philip@php.net
This isn't a documentation problem.  Either 'standard' should list said functions or they need to be listed/grouped under an additional 'extension'.  As betz said, 'standard' is misleading.

Reclassified -> Other Function.
 [2003-01-21 03:58 UTC] sniper@php.net
reclassified as feature request.

 [2003-02-06 14:21 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

PHP 5-dev CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 18:01:28 2024 UTC