MDB2_Driver_fbsql
[ class tree: MDB2_Driver_fbsql ] [ index: MDB2_Driver_fbsql ] [ all elements ]

Source for file package_fbsql.php

Documentation is available at package_fbsql.php

  1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager.php';
  4.  
  5. $version '0.1.1';
  6. $notes = <<<EOT
  7. Warning: this release features numerous BC breaks!
  8.  
  9. There have been considerable improvements to the datatype, manager and reverse
  10. modules. However this driver should be considered unmaintained and likely broken.
  11.  
  12. - increased php dependency to 4.3.0 due to the usage of the streams API since beta5
  13. - ensure that instance is connected before using connection property in tableInfo()
  14. - alterTable now needs the full definition to work (use getTableFieldDefinition
  15.  from Reverse module if you do not have a definition at hand) this eliminates the need
  16.  of the declaration part in the alterTable array.
  17. - ensure that instance is connected before using connection property in tableInfo()
  18. - fix PHP4.4 breakage
  19. - moved getInsertID() into core as lastInsertID()
  20. - moved max_text_length property into the fbsql datatype module
  21. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  22. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  23. - renamed MDB2_PORTABILITY_LOWERCASE to MDB2_PORTABILITY_FIX_CASE and use 'field_case' option to determine if to upper- or lowercase (CASE_LOWER/CASE_UPPER)
  24. - count() -> !empty() where possible
  25. - use array_map() instead of array_flip(array_change_key_case(array_flip())) to fix case of array values
  26. - use array_key_exists() instead of isset() where possible
  27. - changed structure of field add/remove/change in alterTable() to match MDB2_Schema
  28. - return 0 for manipulation queries when disable_query is enabled
  29. - tweaked handling of notnull and default in field reverse engineering
  30. EOT;
  31.  
  32. $package = new PEAR_PackageFileManager();
  33.  
  34. $result $package->setOptions(
  35.     array(
  36.         'packagefile'       => 'package_fbsql.xml',
  37.         'package'           => 'MDB2_Driver_fbsql',
  38.         'summary'           => 'fbsql MDB2 driver',
  39.         'description'       => 'This is the Frontbase SQL MDB2 driver.',
  40.         'version'           => $version,
  41.         'state'             => 'alpha',
  42.         'license'           => 'BSD License',
  43.         'filelistgenerator' => 'cvs',
  44.         'include'           => array('*fbsql*'),
  45.         'notes'             => $notes,
  46.         'changelogoldtonew' => false,
  47.         'simpleoutput'      => true,
  48.         'baseinstalldir'    => '/',
  49.         'packagedirectory'  => './',
  50.         'dir_roles'         => array(
  51.             'docs' => 'doc',
  52.              'examples' => 'doc',
  53.              'tests' => 'test',
  54.              'tests/templates' => 'test',
  55.         ),
  56.     )
  57. );
  58.  
  59. if (PEAR::isError($result)) {
  60.     echo $result->getMessage();
  61.     die();
  62. }
  63.  
  64. $package->addMaintainer('fmk''lead''Frank M. Kromann''frank@kromann.info');
  65. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  66.  
  67. $package->addDependency('php''4.3.0''ge''php'false);
  68. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  69. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  70. $package->addDependency('fbsql'null'has''ext'false);
  71.  
  72. $package->addglobalreplacement('package-info''@package_version@''version');
  73.  
  74. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  75.     $result $package->writePackageFile();
  76. else {
  77.     $result $package->debugPackageFile();
  78. }
  79.  
  80. if (PEAR::isError($result)) {
  81.     echo $result->getMessage();
  82.     die();
  83. }

Documentation generated on Mon, 11 Mar 2019 14:13:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.