felipe Fri Oct 10 16:51:43 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/pdo_mysql/tests pdo_mysql_stmt_fetch_serialize.phpt
pdo_mysql_stmt_fetch_serialize_simple.phpt
Log:
- Fixed tests
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt
diff -u php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt:1.1.2.2
php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt:1.1.2.3
--- php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt:1.1.2.2
Mon Jul 21 13:09:28 2008
+++ php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt Fri Oct
10 16:51:43 2008
@@ -130,13 +130,11 @@
}
Using PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE to fetch the object from DB and
unserialize it...
-myclass::__set(myobj, 'C:7:"myclass":19:{Data from serialize}')
+myclass::unserialize('C:7:"myclass":19:{Data from serialize}')
myclass::__construct(PDO shall not call __construct())
-object(myclass)#%d (2) {
+object(myclass)#%d (1) {
["myprotected":protected]=>
string(19) "a protected propery"
- ["myobj"]=>
- string(38) "C:7:"myclass":19:{Data from serialize}"
}
Using PDO::FETCH_CLASS to fetch the object from DB and unserialize it...
@@ -148,4 +146,4 @@
["myobj"]=>
string(38) "C:7:"myclass":19:{Data from serialize}"
}
-done!
\ No newline at end of file
+done!
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt
diff -u
php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt:1.1.2.2
php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt:1.1.2.3
---
php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt:1.1.2.2
Mon Jul 21 13:09:28 2008
+++ php-src/ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize_simple.phpt
Fri Oct 10 16:51:43 2008
@@ -89,10 +89,8 @@
}
And now PDO using setFetchMode(PDO::FETCH:CLASS|PDO::FETCH_SERIALIZE) +
fetch()...
-myclass::__set('myobj', 'Data fetched from DB to be given to unserialize()')
+myclass::unserialize('Data fetched from DB to be given to unserialize()')
myclass::__construct('Called by PDO') - note that it must not be called when
unserializing
-object(myclass)#%d (1) {
- ["myobj"]=>
- string(49) "Data fetched from DB to be given to unserialize()"
+object(myclass)#%d (0) {
}
-done!
\ No newline at end of file
+done!
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php