~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to ext/mysqli/tests/026.phpt

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - 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, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 varchar(10), c2 text)");
20
20
 
21
21
        $stmt = mysqli_prepare ($link, "INSERT INTO test_bind_fetch VALUES (?,?)");
22
 
        mysqli_bind_param($stmt, "sb", $c1, $c2);
 
22
        mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
23
23
 
24
24
        $c1 = "Hello World";
25
25
 
26
 
        mysqli_send_long_data($stmt, 1, "This is the first sentence.");
27
 
        mysqli_send_long_data($stmt, 1, " And this is the second sentence.");
28
 
        mysqli_send_long_data($stmt, 1, " And finally this is the last sentence.");
 
26
        mysqli_stmt_send_long_data($stmt, 1, "This is the first sentence.");
 
27
        mysqli_stmt_send_long_data($stmt, 1, " And this is the second sentence.");
 
28
        mysqli_stmt_send_long_data($stmt, 1, " And finally this is the last sentence.");
29
29
 
30
 
        mysqli_execute($stmt);
 
30
        mysqli_stmt_execute($stmt);
31
31
        mysqli_stmt_close($stmt);
32
32
 
33
33
        $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
34
 
        mysqli_bind_result($stmt, $d1, $d2);
35
 
        mysqli_execute($stmt);
36
 
        mysqli_fetch($stmt);
 
34
        mysqli_stmt_bind_result($stmt, $d1, $d2);
 
35
        mysqli_stmt_execute($stmt);
 
36
        mysqli_stmt_fetch($stmt);
37
37
 
38
38
        $test = array($d1,$d2);
39
39