fixed the first php 5.3. bugs