~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Examples/php/constants/runme.php

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
require "example.php";
 
4
 
 
5
print "ICONST  = " . ICONST . " (should be 42)\n";
 
6
print "FCONST  = " . FCONST . " (should be 2.1828)\n";
 
7
print "CCONST  = " . CCONST . " (should be 'x')\n";
 
8
print "CCONST2 = " . CCONST2 . " (this should be on a new line)\n";
 
9
print "SCONST  = " . SCONST . " (should be 'Hello World')\n";
 
10
print "SCONST2 = " . SCONST2 . " (should be '\"Hello World\"')\n";
 
11
print "EXPR    = " . EXPR  . " (should be 48.5484)\n";
 
12
print "iconst  = " . iconst . " (should be 37)\n";
 
13
print "fconst  = " . fconst . " (should be 3.14)\n";
 
14
 
 
15
if (EXTERN!="EXTERN") {
 
16
    print "EXTERN = " . EXTERN . " (Arg! This shouldn't print anything)\n";
 
17
} else {
 
18
    print "EXTERN defaults to 'EXTERN', it probably isn't defined (good)\n";
 
19
}
 
20
 
 
21
if (FOO!="FOO") {
 
22
    print "FOO    = " . FOO . "(Arg! This shouldn't print anything)\n";
 
23
} else {
 
24
    print "FOO defaults to 'FOO', it probably isn't defined (good)\n";
 
25
}
 
26
 
 
27
 
 
28
?>