mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
25 lines
544 B
PHP
25 lines
544 B
PHP
--TEST--
|
|
Bug #35336 (crash on PDO::FETCH_CLASS + __set())
|
|
--EXTENSIONS--
|
|
pdo_sqlite
|
|
--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_35336 (a integer primary key, b text)");
|
|
$b = $a->prepare("insert into test_35336 (b) values (?)");
|
|
$b->execute(array (5));
|
|
$rez = $a->query ("SELECT * FROM test_35336")->fetchAll(PDO::FETCH_CLASS, 'EEE');
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
hello world
|
|
hello world
|
|
Done
|