Antony Dovgal wrote:
> try {
> /* do something here */
> } catch (Exception $e) {
> throw $e;
> }
>
> ?>
>
> Is it what you need?
Whooops! Big sorry guys, my fault.
Thanks to you Antony.
Dennis
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.ne
aught Exception as is just adding my current context to the
stack trace.
Sometimes you need something like that.
VB.NET for example allows you something like:
Public Sub foo()
Try
...
Catch e AS NastyException
...
throw
End Try
End Sub
Best Regards
Dennis Sterzenbach
--
PHP Inte
Hi,
> The methods of an object that has been passed to the overload()
> function lose their ability to have parameters passed by
> reference. For
> example:
>
> class Foo
> {
> function hello(&$array)
> {
> $array[] = "hello";
> }
> }
>
> $array = null;
> $foo = & new foo()
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
>
> 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
have the
list of disabled functions to hand a true/false directly
from C code. Which seems to be the more consequent and
ideal solution.
--
Dennis Sterzenbach
www.darknoise.de
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
do you think about it?
Regards
Dennis Sterzenbach
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
I want to participate in PEAR Documentation. At most I would like to help translating
it to german.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php