View Full Version : eval'ing a template that doesnt exist??
exTracT
03-22-2004, 10:51 PM
if i try to eval a template that doesnt exist, what happens??
like this
eval('$variable = "' . fetch_template($nonexistant) . '";');
similarly, if i add it to global templates array, and call global.php, what happens if the page doesnt exist when it searches for them??
Velocd
03-23-2004, 03:48 AM
Why don't you try it out and find for yourself?
It's not as if it would kill your database. :p
My guess is nothing happens, or eval returns false or not null.
Zachery
03-23-2004, 04:19 AM
Why don't you try it out and find for yourself?
It's not as if it would kill your database. :p
My guess is nothing happens, or eval returns false or not null.
returns false and nothing happens.
exTracT
03-23-2004, 01:23 PM
returns false and nothing happens.
good good, hehe, yeah i realized it wont explode the computer, but i thought maybe there would be some processing delay or something, or it would be really ineffecient etc
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.