Re: The new run-tests.php...
| From: | Johannes Schlüter | Date: | Fri, 03 Jul 2009 13:38:21 +0000 |
| Subject: | Re: The new run-tests.php... | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65182@lists.php.net to get a copy of this message | ||
Hi,
On Fri, 2009-07-03 at 14:10 +0200, Georg Gradwohl wrote:
> > Oh, easy. PHP6 wants you to use "print $e->getMessage()" instead of
> > "print $e". I am not familiar enough with the PHP syntax to judge if
> > that is a PHP 6 issue or a valid PHP 6 syntax change.
> In this case we use our own exception-class (rtException) which has a
> __toString-method implemented. So "print $e" should work for this, or rather
> does work with php5.
PHP 6 currently doesn't allow Exception's __toString to work. Some two
or three years ago I had a look at this issue but couldn't fix it I
think one of the reasons was that parts of it worked with unicode
strings and some with binary and I couldn't decide which way to go ..
and __toString requires unicode strings only ... or the other way ound,
don't remember in detail, internals archives should have an analysis of
this.
If you just want it working for now use explicit echo $e->__toString();
in the long run this requires a fix in the engine.
johannes