Re: segfault with ze2 #3
| From: | Sterling Hughes | Date: | Sun, 23 Mar 2003 16:53:46 +0000 |
| Subject: | Re: segfault with ze2 #3 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-195@lists.php.net to get a copy of this message | ||
On Sun, 2003-03-23 at 11:47, Sterling Hughes wrote:
> <?php
> namespace Foo {
> class Bar {
> function boom() {
> echo "BOOM!\n";
> }
> }
>
> import Bar;
>
> $b = new Bar;
> $b->boom();
> ?>
>
> The import parse error will cause a segfault.
>
Just a note that most import statements cause a parser error + segfault:
import Bar from Foo
import * from Foo
etc.
> -Sterling
>
> --
> "Programming today is a race between software engineers stirring to
> build bigger and better idiot-proof programs, and the universe trying
> to produce bigger and better idiots. So far, the universe is winning."
> - Unknown
--
"A business that makes nothing but money is a poor kind of business."
- Henry Ford