summaryrefslogtreecommitdiff
path: root/ext/pdo/tests
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-05-14 12:32:21 +0000
committerFelipe Pena <felipe@php.net>2008-05-14 12:32:21 +0000
commitf6cc283d46a3ea162add0b8586cb62cbbb615c81 (patch)
treedd14be50a6d115a6f391bc5c74109e592d3a8e80 /ext/pdo/tests
parent7d4dfa8ee42105a1248c2189a88435ab5fdfc520 (diff)
downloadphp-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.phpt10
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