Re: [PHP-DEV] Re: is_a2z would be nice... From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 10/24/00

Joey Smith wrote:
> Not 100% sure what you mean by this, so I guess it's time to dig into
> php_error(). PG() is parser globals?

no, it is 'php_core_globals' ...

i originaly planned to add warn_deprecate and warn_experimental as
boolean options here, but having them containing an error_level
instead is easy

so in php.ini we would have

   warn_deprecate = E_WARNING ; default
  ;warn_deprecate = E_ERROR ; do not allow ...
  ;warn_deprecate = 0 ; the old behavior, ignore ...

instead of

   warn_deprecate = On ; default
  ;warn_deprecate = Off ; the old behavior, ignore ...

and on calling php_error() we pass the configured value instead
of a constant E_WARNING as error_level

the PG() together with PLS_FETCH() is needed to get access to the
core globals for the active thread in a multithreaded SAPI, in
the sample implementation they are defined as 'nothing' and
warn_deprecate and warn_experimental are just plain variables, but
when this aproach will make it into the main code they'll become
members of the php_core_globals data structure, so i have already
used the PG() semantic here ...
PG()

--
Hartmut Holzgraefe  hartmut <email protected>  http://www.six.de  +49-711-99091-77 

Besuchen Sie uns auf der Systems in München , Halle C2, Stand 126

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>