summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/tests
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2010-02-11 22:14:06 +0000
committerJohannes Schlüter <johannes@php.net>2010-02-11 22:14:06 +0000
commited03634a8c4a8b87bcb1faebfdfc3ddd9bd79b3e (patch)
tree71e43840bccdf72462634062687e27c12c1dbd55 /ext/pdo_sqlite/tests
parenteb0de2af90bf4b2f07b56d48355e02b73e4c7ee4 (diff)
downloadphp-git-ed03634a8c4a8b87bcb1faebfdfc3ddd9bd79b3e.tar.gz
Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling
constructor)
Diffstat (limited to 'ext/pdo_sqlite/tests')
-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"
-}