summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/tests/bug46292.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_mysql/tests/bug46292.phpt')
-rw-r--r--ext/pdo_mysql/tests/bug46292.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/pdo_mysql/tests/bug46292.phpt b/ext/pdo_mysql/tests/bug46292.phpt
index 6a430a4dfb..8885384f1c 100644
--- a/ext/pdo_mysql/tests/bug46292.phpt
+++ b/ext/pdo_mysql/tests/bug46292.phpt
@@ -7,22 +7,22 @@ require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
MySQLPDOTest::skip();
?>
--FILE--
-<?php
-
+<?php
+
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
$pdoDb = MySQLPDOTest::factory();
-
+
class myclass implements Serializable {
public function __construct() {
printf("%s()\n", __METHOD__);
}
-
+
public function serialize() {
printf("%s()\n", __METHOD__);
return "any data from serialize()";
}
-
+
public function unserialize($dat) {
printf("%s(%s)\n", __METHOD__, var_export($dat, true));
return $dat;
@@ -33,11 +33,11 @@ MySQLPDOTest::skip();
$pdoDb->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$pdoDb->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
-
+
$pdoDb->query('DROP TABLE IF EXISTS testz');
-
+
$pdoDb->query('CREATE TABLE testz (name VARCHAR(20) NOT NULL, value INT)');
-
+
$pdoDb->query("INSERT INTO testz VALUES ('myclass', 1), ('myclass2', 2), ('myclass', NULL), ('myclass3', NULL)");
$stmt = $pdoDb->prepare("SELECT * FROM testz");