fixed for php3.3.10