Re: [PHP-DEV] (re)throwing exceptions

2005-08-06 Thread Dennis Sterzenbach
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

[PHP-DEV] (re)throwing exceptions

2005-08-06 Thread Dennis Sterzenbach
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

RE: [PHP-DEV] overload extension

2003-10-22 Thread Dennis Sterzenbach
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()

RE: [PHP-DEV] retrieving information about state of a function

2003-10-01 Thread Dennis Sterzenbach
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

RE: [PHP-DEV] retrieving information about state of a function

2003-10-01 Thread Dennis Sterzenbach
> 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

RE: [PHP-DEV] retrieving information about state of a function

2003-10-01 Thread Dennis Sterzenbach
> > 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

[PHP-DEV] retrieving information about state of a function

2003-10-01 Thread Dennis Sterzenbach
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

[PHP-DEV] Change var_dump to return information

2003-09-28 Thread Dennis Sterzenbach
do you think about it? Regards Dennis Sterzenbach -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: darknoise

2003-09-28 Thread Dennis Sterzenbach
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