segfault with ze2 #3

php.internals

Sterling Hughes

23 years ago
<?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. -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

Sterling Hughes

23 years ago
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

Stanislav Malyshev

23 years ago
This one should be fixed now. SH>> <?php namespace Foo { SH>> class Bar { SH>> function boom() { SH>> echo "BOOM!\n"; SH>> } SH>> } SH>> SH>> import Bar; SH>> SH>> $b = new Bar; SH>> $b->boom(); SH>> ?> SH>> SH>> The import parse error will cause a segfault. SH>> SH>> -Sterling SH>> SH>>
-- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109