On Sun, 14 Sep 2003, moshe doron wrote:
> there are some mixing on lxr regrading to php4/php-src, that makes the
> navigation impossible.
>
> e, g:
> http://lxr.php.net/ident?i=php_register_variable
> point to php4/ instead of php-src/.
Should be fixed now.
-Andrei
Documentation is worth it j
> I'm no php developer, just a few ideas really.
Ack
> Disable_Filesystem On|Off
> # would disable all the functions in the filesystem group
>
> Disable_Directory On|Off
> # would disable all functions in the directory group
It would mean having some kind of structure to categorize
all the in
Greg Beaver wrote:
In keeping with other functions that test pseudo-types like
is_callable(), why not create a new function is_includeable() that will
take a filename/path, and use include_path by default, or accept an
optional array of paths to search.
if (is_includeable("somefile.php")) {
Access to the PEAR module to maintain File_IMC and other packages
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
In keeping with other functions that test pseudo-types like
is_callable(), why not create a new function is_includeable() that will
take a filename/path, and use include_path by default, or accept an
optional array of paths to search.
if (is_includeable("somefile.php")) {
include "somefile
Hi Derick,
> What the hell are you talking about?
I thought it would be obvious that I was ironically criticizing
the idea of disabling ini_get etc... And that i was just kidding.
Stefan
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.ph
On Wed, 1 Oct 2003 [EMAIL PROTECTED] wrote:
> > Oh and what about having disabled the ini_get/ini_set methods:
> > ...
> > print ini_get('disable_functions');
> > ...
> > Warning: ini_get,ini_set() has been disabled for security reasons
>
> This won't work in PHP 5.0 because it comes with print/e
Hi,
> Oh and what about having disabled the ini_get/ini_set methods:
> ...
> print ini_get('disable_functions');
> ...
> Warning: ini_get,ini_set() has been disabled for security reasons
This won't work in PHP 5.0 because it comes with print/echo disabled
by default for security reasons.
This wi
Hi list!
I'm no php developer, just a few ideas really.
Would it be possible to disable all unused functions per
group, that are compiled into php4, using directives in
php.ini?
Could be ideal for testing purposes, and for others that
want to use different configurations of the same php_module,
Oh and what about having disabled the ini_get/ini_set methods:
Warning: ini_get,ini_set() has been disabled for security reasons
That's making the problem quite enormous.
Dennis
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
> Of course... why do you NEED to know if it's not available or
> disabled... the result is the same: you can not use the function.
>
Sure.
But still it is a difference if my code is stable or not. Using an
own implementation telling about the disabled state makes it stable.
Also code should be per
On Wed, 1 Oct 2003, Dennis Sterzenbach wrote:
> >
> > You can either use function_exists() to check if a function is
> > available, or use "ini_get('disabled_functions')".
> >
> > Derick
> >
> function_exists() NEVER informs about the function being
> disabled or not it does inform about (I cite
>
> You can either use function_exists() to check if a function is
> available, or use "ini_get('disabled_functions')".
>
> Derick
>
function_exists() NEVER informs about the function being
disabled or not it does inform about (I cite the manual here:)
"if the given function has been defined".
So
On Wed, 1 Oct 2003, Dennis Sterzenbach wrote:
> Hi,
>
> I recognized there isn't any built-in function which
> tells the disabled/enabled state of some function.
> I think of something like:
>
> if (function_enabled("shell_exec")) {
>$info = shell_exec("dig myname.com");
> }
>
> telling if
Hi,
I recognized there isn't any built-in function which
tells the disabled/enabled state of some function.
I think of something like:
if (function_enabled("shell_exec")) {
$info = shell_exec("dig myname.com");
}
telling if shell_exec is disabled by php.ini setting
or not.
I already implemen
Hello again,
Some time ago I posted this patch but nobody commented.
Anyone?
diff -Naur php-4.3.3-orig/main/main.c php-4.3.3/main/main.c
--- php-4.3.3-orig/main/main.c 2003-08-22 22:02:11.0 +0200
+++ php-4.3.3/main/main.c 2003-09-10 11:25:09.0 +0200
@@ -1,4 +1,4 @@
-/*
+/*
+
Hello,
I see that in 4.3.4RC1 this bug is fixed. Can someone please give me a hint
where to find the patch only for that one?
I investigated a little because some time ago I made a patch that solves the
following problem.
Explanation:
When open_basedir is in effect the following operation fail
> From: Jon Parise [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 01, 2003 10:07 AM
> On Wed, Oct 01, 2003 at 10:00:23AM +0200, Hartmut Holzgraefe wrote:
>
> > the whole point about this additional feature is that you can use it
to
> > check
> > for include file existance before the actual
On Wed, Oct 01, 2003 at 10:00:23AM +0200, Hartmut Holzgraefe wrote:
> the whole point about this additional feature is that you can use it to
> check
> for include file existance before the actual include:
>
> if (file_exists("somefile.php", true)) {
> include "somefile.php";
> }
>
> IMHO thi
Justin Hannus wrote:
I agree with Wez, what if you are searching for a file with a relative file
path, e.g:
would return true if "somefile.php" is not in the current directory but is
in your include path, not what you expected. Besides, you can easily
implement this functionality in php.
its going
20 matches
Mail list logo