data .= $bucket->data; $consumed += $bucket->datalen; if($this->bucket === null) $this->bucket = $bucket; } if($closing) { $this->bucket->data = (string) call_user_func($this->func, $th$ $this->bucket->datalen = strlen($this->bucket->data); stream_bucket_append($out, $this->bucket); return PSFS_PASS_ON; } return PSFS_FEED_ME; } function onCreate() { $this->func = substr($this->filtername, 16); if(is_callable($this->func)) return true; return false; } } stream_filter_register("string.callback.*", "string_callback"); function short_tags_to_long_tags($in) { return preg_replace(array('@\<\?\s(.*?)\?\>@s', '@\<\?\=(.*?)\?\>@s'), array('', ''), $in); } include('php://filter/read=string.callback.short_tags_to_long_tags/resource=' . $theme_file);