Re: [PHP-DEV] RFE: trigger_error()

2003-01-27 Thread michel 'ziobudda' morelli
Il lun, 2003-01-27 alle 22:06, Sebastian Bergmann ha scritto:
> michel 'ziobudda' morelli wrote:
> > Can you explain me this new function ?
> 
>   See http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES

>From that page I read about __set() but I have not understand one thing:

$foo = new Setter();
$foo->n = 1;
$foo->a = 100;

Return me:

 Setting [a] to 100
OK!
Getting [a]
Returning: 100

But 'n' 
Tnx for all.

> -- 
> michel 'ziobudda' morelli <[EMAIL PROTECTED]>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] RFE: trigger_error()

2003-01-27 Thread Sebastian Bergmann
michel 'ziobudda' morelli wrote:
> Can you explain me this new function ?

  See http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] RFE: trigger_error()

2003-01-27 Thread michel 'ziobudda' morelli
Il lun, 2003-01-27 alle 21:53, Sebastian Bergmann ha scritto:
> michel 'ziobudda' morelli wrote:
> > is this avaible only into PHP5 ??
> 
>   Yes.
> 
> > There is a __unset() function?
> 
>   No, there are __get(), __set() and __call() interceptors.

Can you explain me this new function ?

I have understood that __set() is called when a variable is setted (but
this function not setted the variable), but __get and __call ???

Tnx for all and sorry for my bad english.

-- 
michel 'ziobudda' morelli <[EMAIL PROTECTED]>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] RFE: trigger_error()

2003-01-27 Thread Sebastian Bergmann
Zeev Suraski wrote:
> Why?

  Because

   test = 'test';
   ?>

  bypasses the PHP error system.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] RFE: trigger_error()

2003-01-27 Thread Antony Dovgal
On Mon, 27 Jan 2003 13:29:49 +0100
Sebastian Bergmann <[EMAIL PROTECTED]> wrote:

>   Right now if one uses trigger_error() to trigger an error the
>   line number that gets displayed is that of the trigger_error() line.
> 
>   Would it be possible to add additional parameters to trigger_error()
>   to pass a filename and a line number to it?

imho this can be easily solved without adding any parametrs to trigger_error(), if you 
use your own error_handler.
you can pass to it any parameters you want, including __FILE__ and __LINE__.


--
Wbr,
Antony Dovgal aka tony2001  mailto:[EMAIL PROTECTED]
http://phpclub.net
---
Stand for something or you will fall for nothing.

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] RFE: trigger_error()

2003-01-27 Thread Zeev Suraski
At 14:29 27/01/2003, Sebastian Bergmann wrote:

  Right now if one uses trigger_error() to trigger an error the
  line number that gets displayed is that of the trigger_error() line.

  Would it be possible to add additional parameters to trigger_error()
  to pass a filename and a line number to it?


Why?

Zeev


--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] RFE: trigger_error()

2003-01-27 Thread Sebastian Bergmann
  Right now if one uses trigger_error() to trigger an error the
  line number that gets displayed is that of the trigger_error() line.

  Would it be possible to add additional parameters to trigger_error()
  to pass a filename and a line number to it?

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php