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

« back to all changes in this revision

Viewing changes to ext/standard/tests/strings/setlocale_variation2.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:
18
18
/* setlocale() to set all available locales in the system and check the success count */
19
19
echo "*** Testing setlocale() : usage variations ***\n";
20
20
 
 
21
function good_locale($locale) {
 
22
        return $locale !== 'tt_RU@iqtelif.UTF-8';
 
23
}
 
24
 
21
25
/* Prototype  : array list_system_locales( void )
22
26
 * Description: To get the currently installed locle in this platform 
23
27
 * Arguments  : Nil
38
42
 
39
43
  $system_locales = explode("\n", $all_locales);
40
44
 
41
 
  // return all the locale found in the system
42
 
  return $system_locales;
 
45
  // return all the locale found in the system, except for broken one
 
46
  return array_filter($system_locales, 'good_locale');
43
47
}
44
48
 
45
49
// gather all the locales installed in the system