fixed bugs in php-silverplate