[PHP-DEV] segfault on linux, crash on win *no* circular include with include_once() From: waldschrott (waldschrott <email protected>)
Date: 07/22/00

I´m getting a segfault and a crash with include_once(), actually it
results in a "parse error" (but it isn´t) if I place a die() after that
include_once(), if I don´t do that, PHP crashes

What I´m doing is the following:

file a (named class.php)
chdir('extension/');
include_once('class.ext.php');
chdir('../../db/');

file b:
include_once('../class.php');

*IF* I´d use include() (not include_once()) it should result in a
infinite loop, but include_once() shouldn´t do that.

Perhaps include_once() isn´t smart enough to know that it actually
parses the file it tries to include once again.

regards

-- 
o----------0-¬---------O-·---¬----o---®-----o o    O   °       .
| http://www.kiffen.de | pRoteçt y0ur bRaín |0  O °     ¤  °        ·
0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © °   .  ·
| psychedelic experience |  gott <email protected>  | O   ° o           °
o-¬--o--0-----©-·--O-----o-----0-¤----------o  0 °  · °  .  ¤ ·

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>