[Phpmyadmin-devel] Re: Parser and PHP3
Robin Johnson
robbat2 at fermi.orbis-terrarum.net
Fri Jul 26 10:35:06 CEST 2002
On Fri, 26 Jul 2002, [iso-8859-1] Loïc wrote:
> ["trigger_error" problem]
> >This is a problem actually. I don't want to terminate the
> >running of the page just because my SQL Parser can't
> >handle something in the query. I wanted to just print out
> >a message as to why my parser failed and continue
> >execution of the page contents.
> OK, the we may think about a way to emulate it under
> PHP3.
I think we may be able to do it with the BUG() function, and a few global
variables for errors.
> ["gzcompress" and "gzcompress" problem]
> OK but but should only do this if the "gzcompress"
> function is usable ie
> if (PMA_PHP_INT_VERSION >= 40001 && @function_exists('gzcompress')) {
> $encodedstr = nl2br(chunk_split(base64_encode(gzcompress($debugstr,
> 9))));
> } else {
> $encodedstr = nl2br(chunk_split(base64_encode($debugstr, 9)));
> }
Similar fix is now applied in CVS.
> >The linux kernel has a 'BUG()' call. For some of our
> >PMA code, a similar thing would actually be a
> >very useful function call.
> Very interesting idea :)
That is 2.3.1 level, so we'll leave it for now.
--
Robin Hugh Johnson
E-Mail : robbat2 at orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
More information about the Developers
mailing list