diff options
| author | Antony Dovgal <tony2001@php.net> | 2005-11-23 11:15:11 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2005-11-23 11:15:11 +0000 |
| commit | 1e93bb16e4bded081b1ba723de954f34e53e7165 (patch) | |
| tree | a3e7dcf8b2cf699cfc5d08c8c0f266182d02978e /ext/pdo_sqlite | |
| parent | 36d6ddc24136d6f2ce7c6aa2cecbbc93a846a9b6 (diff) | |
| download | php-git-1e93bb16e4bded081b1ba723de954f34e53e7165.tar.gz | |
fix #35336 (crash on PDO::FETCH_CLASS + __set())
Diffstat (limited to 'ext/pdo_sqlite')
| -rw-r--r-- | ext/pdo_sqlite/tests/bug35336.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/bug35336.phpt b/ext/pdo_sqlite/tests/bug35336.phpt new file mode 100644 index 0000000000..9fe77e19b7 --- /dev/null +++ b/ext/pdo_sqlite/tests/bug35336.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #35336 (crash on PDO::FETCH_CLASS + __set()) +--FILE-- +<?php +class EEE { + function __set ($field, $value) { + echo "hello world\n"; + } +} + +$a = new PDO("sqlite::memory:");// pool ("sqlite::memory:"); +$a->query ("CREATE TABLE test (a integer primary key, b text)"); +$b = $a->prepare("insert into test (b) values (?)"); +$b->execute(array (5)); +$rez = $a->query ("SELECT * FROM test")->fetchAll(PDO::FETCH_CLASS, 'EEE'); + +echo "Done\n"; +?> +--EXPECTF-- +hello world +hello world +Done |
