Re: Re: is_a2z would be nice...
| From: | Hartmut Holzgraefe | Date: | Tue, 24 Oct 2000 13:43:09 +0000 |
| Subject: | Re: Re: is_a2z would be nice... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36073@lists.php.net to get a copy of this message | ||
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@six.de http://www.six.de
+49-711-99091-77
Besuchen Sie uns auf der Systems in München , Halle C2, Stand 126