svn: /php/php-src/ branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt trunk/ext/pdo/tests/pdo_037.phpt
| From: | Felipe Pena | Date: | Wed, 16 Jun 2010 23:33:01 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt trunk/ext/pdo/tests/pdo_037.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-62905@lists.php.net to get a copy of this message | ||
felipe Wed, 16 Jun 2010 23:33:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300504
Log:
- New tests related to #52098
Bug: http://bugs.php.net/52098 (Open) Own PDOStatement
implementation ignore __call()
Changed paths:
A php/php-src/branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt
A php/php-src/branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt
A php/php-src/trunk/ext/pdo/tests/pdo_037.phpt
Added: php/php-src/branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt (rev 0)
+++ php/php-src/branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt 2010-06-16 23:33:01 UTC (rev 300504)
@@ -0,0 +1,19 @@
+--TEST--
+Crash when calling a method of a class that inherits PDOStatement
+--SKIPIF--
+<?php
+if (!extension_loaded('pdo')) die('skip');
+?>
+--FILE--
+<?php
+
+class MyStatement extends PDOStatement
+{
+}
+
+$obj = new MyStatement;
+var_dump($obj->foo());
+
+?>
+--EXPECTF--
+Fatal error: Call to undefined method MyStatement::foo() in %s on line %d
Property changes on: php/php-src/branches/PHP_5_2/ext/pdo/tests/pdo_037.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
Added: php/php-src/branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt 2010-06-16 23:33:01 UTC (rev 300504)
@@ -0,0 +1,19 @@
+--TEST--
+Crash when calling a method of a class that inherits PDOStatement
+--SKIPIF--
+<?php
+if (!extension_loaded('pdo')) die('skip');
+?>
+--FILE--
+<?php
+
+class MyStatement extends PDOStatement
+{
+}
+
+$obj = new MyStatement;
+var_dump($obj->foo());
+
+?>
+--EXPECTF--
+Fatal error: Call to undefined method MyStatement::foo() in %s on line %d
Property changes on: php/php-src/branches/PHP_5_3/ext/pdo/tests/pdo_037.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
Added: php/php-src/trunk/ext/pdo/tests/pdo_037.phpt
===================================================================
--- php/php-src/trunk/ext/pdo/tests/pdo_037.phpt (rev 0)
+++ php/php-src/trunk/ext/pdo/tests/pdo_037.phpt 2010-06-16 23:33:01 UTC (rev 300504)
@@ -0,0 +1,19 @@
+--TEST--
+Crash when calling a method of a class that inherits PDOStatement
+--SKIPIF--
+<?php
+if (!extension_loaded('pdo')) die('skip');
+?>
+--FILE--
+<?php
+
+class MyStatement extends PDOStatement
+{
+}
+
+$obj = new MyStatement;
+var_dump($obj->foo());
+
+?>
+--EXPECTF--
+Fatal error: Call to undefined method MyStatement::foo() in %s on line %d
Property changes on: php/php-src/trunk/ext/pdo/tests/pdo_037.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native