diff options
author | Felipe Pena <felipe@php.net> | 2008-05-14 12:32:21 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-05-14 12:32:21 +0000 |
commit | f6cc283d46a3ea162add0b8586cb62cbbb615c81 (patch) | |
tree | dd14be50a6d115a6f391bc5c74109e592d3a8e80 /ext/pdo/tests | |
parent | 7d4dfa8ee42105a1248c2189a88435ab5fdfc520 (diff) | |
download | php-git-f6cc283d46a3ea162add0b8586cb62cbbb615c81.tar.gz |
- MFH: Add check for avoid segfault when trying instantiate PDORow manually
Diffstat (limited to 'ext/pdo/tests')
-rw-r--r-- | ext/pdo/tests/pdorow.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pdo/tests/pdorow.phpt b/ext/pdo/tests/pdorow.phpt new file mode 100644 index 0000000000..b33dd155d8 --- /dev/null +++ b/ext/pdo/tests/pdorow.phpt @@ -0,0 +1,10 @@ +--TEST-- +Trying instantiate a PDORow object manually +--FILE-- +<?php + +new PDORow; + +?> +--EXPECTF-- +Fatal error: PDORow::__construct(): You should not create a PDOStatement manually in %s on line %d |