~ubuntu-branches/ubuntu/lucid/php5/lucid

« back to all changes in this revision

Viewing changes to ext/pdo_mysql/tests/pdo_mysql_attr_statement_class.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-03-16 09:09:50 UTC
  • mfrom: (1.1.18 upstream) (0.3.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100316090950-e36m0pzranoixifd
Tags: 5.3.2-1ubuntu1
* Merge from debian unstable: 
  - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions already in
      universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
  - Dropped debian/patches/libedit_is_editline.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        $stmt = $db->query('SELECT id, label FROM test ORDER BY id ASC LIMIT 1');
107
107
 
108
108
        print "done!";
 
109
?>
109
110
--EXPECTF--
110
111
array(1) {
111
112
  [0]=>
112
 
  string(12) "PDOStatement"
 
113
  %unicode|string%(12) "PDOStatement"
113
114
}
114
115
 
115
116
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class in %s on line %d
125
126
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error in %s on line %d
126
127
array(2) {
127
128
  [0]=>
128
 
  string(12) "mystatement4"
 
129
  %unicode|string%(12) "mystatement4"
129
130
  [1]=>
130
131
  array(1) {
131
132
    [0]=>
132
 
    string(6) "param1"
 
133
    %unicode|string%(6) "param1"
133
134
  }
134
135
}
135
136
mystatement4
136
 
string(6) "param1"
 
137
%unicode|string%(6) "param1"
137
138
mystatement5
138
 
string(12) "mystatement5"
139
 
string(10) "no data :)"
 
139
%unicode|string%(12) "mystatement5"
 
140
%unicode|string%(10) "no data :)"
140
141
array(1) {
141
142
  [0]=>
142
143
  array(4) {
143
 
    ["id"]=>
144
 
    string(1) "1"
 
144
    [%u|b%"id"]=>
 
145
    %unicode|string%(1) "1"
145
146
    [0]=>
146
 
    string(1) "1"
147
 
    ["label"]=>
148
 
    string(1) "a"
 
147
    %unicode|string%(1) "1"
 
148
    [%u|b%"label"]=>
 
149
    %unicode|string%(1) "a"
149
150
    [1]=>
150
 
    string(1) "a"
 
151
    %unicode|string%(1) "a"
151
152
  }
152
153
}
153
154