~ubuntu-branches/ubuntu/quantal/php5/quantal

« back to all changes in this revision

Viewing changes to ext/date/tests/bug54283.phpt

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-18 15:39:03 UTC
  • mfrom: (0.3.33 sid)
  • Revision ID: package-import@ubuntu.com-20111018153903-krnr2z1eqgymk84u
Tags: 5.3.8-2ubuntu1
* Merge with Debian; remaining changes:
  - debian/rules: export DEB_HOST_MULTIARCH properly.
  - Only build php5-sqlite for sqlite3, dropping the obsolete sqlite2.
  - Add build-dependency on lemon, which we now need.
  - Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
  - Dropped libcurl-dev not in the archive.
  - debian/control: replace build-depends on mysql-server with
    mysql-server-core-5.1 and mysql-client-5.1 to avoid upstart and
    mysql-server-5.1 postinst confusion with starting up multiple
    mysqlds listening on the same port.
  - Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions
    already in universe.
  - Suggest php5-suhosin rather than recommends.
  - Dropped libonig-dev and libqgdbm since its in universe. (libonig MIR
    has been declined due to an inactive upstream. So this is probably
    a permanent change).
  - 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
  - debian/control: Recommend php5-dev for php-pear.
  - debian/rules: --enable-pcntl for cgi as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #54283 (new DatePeriod(NULL) causes crash)
 
3
--FILE--
 
4
<?php
 
5
 
 
6
try {
 
7
        var_dump(new DatePeriod(NULL));
 
8
} catch (Exception $e) {
 
9
        var_dump($e->getMessage());
 
10
}
 
11
 
 
12
?>
 
13
--EXPECTF--
 
14
string(51) "DatePeriod::__construct(): Unknown or bad format ()"