summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/tests/bug49521.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_sqlite/tests/bug49521.phpt')
-rw-r--r--ext/pdo_sqlite/tests/bug49521.phpt39
1 files changed, 0 insertions, 39 deletions
diff --git a/ext/pdo_sqlite/tests/bug49521.phpt b/ext/pdo_sqlite/tests/bug49521.phpt
deleted file mode 100644
index 26cd2b2171..0000000000
--- a/ext/pdo_sqlite/tests/bug49521.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Bug #49521 (PDO fetchObject sets values before calling constructor)
---SKIPIF--
-<?php
-if (!extension_loaded('pdo_sqlite')) die ("skip Need PDO_SQlite support");
-?>
---FILE--
-<?php
-
-class Book {
- public $title = 'test';
- public $author;
-
- public function __construct($x) {
- $this->title = '';
- echo __METHOD__,"\n";
- }
- public function __set($a, $b) {
- echo __METHOD__,"\n";
- var_dump($a);
- }
-}
-
-$pdo = new PDO('sqlite::memory:');
-$pdo->exec('CREATE TABLE book(title,author)');
-$pdo->exec('INSERT INTO book VALUES ("PHP","Rasmus")');
-$statement = $pdo->prepare('SELECT * FROM book WHERE title="PHP"');
-$statement->execute();
-var_dump($statement->fetchObject('Book', array(1)));
-
-?>
---EXPECTF--
-Book::__construct
-object(Book)#%d (2) {
- [%u|b%"title"]=>
- string(3) "PHP"
- [%u|b%"author"]=>
- string(6) "Rasmus"
-}