~ubuntu-branches/ubuntu/gutsy/php5/gutsy

« back to all changes in this revision

Viewing changes to ext/sybase_ct/tests/bug22403.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-06-11 20:32:54 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070611203254-b4k8nggrm5vxul1j
Tags: 5.2.3-1ubuntu1
* Merge from debian unstable, remaining changes:
 - debian/changelog: Add some missing CVEs.
 - debian/control: DebianMaintainerField
 - debian/control, debian/rules: Disable a few build dependencies and
   accompanying binary packages which we do not want to support in main:
   + firebird2-dev/php5-interbase (we have a separate php-interbase source)
   + libc-client-dev/php5-imap (we have a separate php-imap source)
   + libmcrypt-dev/php5-mcrypt (separate php-mcrypt source)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
<?php
7
7
/* This file is part of PHP test framework for ext/sybase_ct
8
8
 *
9
 
 * $Id: bug22403.phpt,v 1.2 2005/02/06 12:59:03 thekid Exp $ 
 
9
 * $Id: bug22403.phpt,v 1.2.4.1 2007/05/22 11:35:47 thekid Exp $ 
10
10
 */
11
11
 
12
12
  require('test.inc');
17
17
 
18
18
  // Check if stored procedure already exists
19
19
  $sp_name= 'phpt_bug22403';
20
 
  var_dump(sybase_select_db('tempdb', $db));
 
20
  var_dump(sybase_select_db(TEMPDB, $db));
21
21
  if (!sybase_select_single($db, 'select object_id("'.$sp_name.'")')) {
22
22
    echo "Stored procedure {$sp_name} not found, creating\n";
23
23
    var_dump(sybase_query('
63
63
<<< Return: boolean
64
64
bool(false)
65
65
>>> Query: exec does_not_exist
66
 
*** Caught Sybase Server Message #2812 [Severity 16, state 4] at line 1
 
66
*** Caught Sybase Server Message #2812 [Severity 16, state %d] at line 1
67
67
    %s
68
68
<<< Return: boolean
69
69
bool(false)