我有一个函数,如果一个变量没有被定义,exit;被调用,因此它不应该在页面上产生任何东西,而是一个空白页面。它会在实际退出之前生成错误消息。所以当它应该执行的时候,因为变量没有被定义,它应该会死掉,但是会发生错误消息被执行,然后页面的其余部分加载到错误消息中,并且不会退出。有任何想法吗? public function exit_error() {
parent::error_array
我有,我想一定条件下提前退出的脚本: if not "id" in dir():
print "id not set, cannot continue"
# exit here!
# otherwise continue with the rest of the script...
print "alright..."
[ more code ]
我运行使用execf