segfault on linux, crash on win *no* circular include with include_once()

From: Date: Sat, 22 Jul 2000 14:57:27 +0000
Subject: segfault on linux, crash on win *no* circular include with include_once()
Groups: php.dev 
Request: Send a blank email to php-dev+get-25424@lists.php.net to get a copy of this message
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@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#25424) next »