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

Source for file package_oci8.php

Documentation is available at package_oci8.php

  1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager.php';
  4.  
  5. $version '0.1.2';
  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. Furthermore preliminary support for auto increment and primary keys
  11. has been added. Please note that making a field auto increment implies a single
  12. column primary key on this field.
  13.  
  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. - fix PHP4.4 breakage
  18. - fixed typo in unsigned integer declaration handling
  19. - no need to close() the descriptor according to the docs (we do free() it though)
  20. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  21. - expect keys in type arrays the same way as they are passed for the values in execute() and bindParamArray()
  22. - add s pattern modifier to preg_replace() call for parameter searches in prepare() (bug #5362)
  23. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  24. - 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)
  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. - added createIndex()
  29. - return 0 for manipulation queries when disable_query is enabled
  30. - tweaked field changing in alterTable()
  31. - getTypeDeclaration() in the datatype module is now a public method
  32.  
  33. open todo items:
  34. - code to be able to list primary contraints inside listTableIndexes()/dropIndex()
  35. - handle autoincremement fields in alterTable() and dropTable()
  36. - using LOBs have a tendency to crash apache (even with the uptodate PECL oci8 ext)
  37. EOT;
  38.  
  39. $package = new PEAR_PackageFileManager();
  40.  
  41. $result $package->setOptions(
  42.     array(
  43.         'packagefile'       => 'package_oci8.xml',
  44.         'package'           => 'MDB2_Driver_oci8',
  45.         'summary'           => 'oci8 MDB2 driver',
  46.         'description'       => 'This is the Oracle OCI8 MDB2 driver.',
  47.         'version'           => $version,
  48.         'state'             => 'alpha',
  49.         'license'           => 'BSD License',
  50.         'filelistgenerator' => 'cvs',
  51.         'include'           => array('*oci8*'),
  52.         'notes'             => $notes,
  53.         'changelogoldtonew' => false,
  54.         'simpleoutput'      => true,
  55.         'baseinstalldir'    => '/',
  56.         'packagedirectory'  => './',
  57.         'dir_roles'         => array(
  58.             'docs' => 'doc',
  59.              'examples' => 'doc',
  60.              'tests' => 'test',
  61.              'tests/templates' => 'test',
  62.         ),
  63.     )
  64. );
  65.  
  66. if (PEAR::isError($result)) {
  67.     echo $result->getMessage();
  68.     die();
  69. }
  70.  
  71. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  72.  
  73. $package->addDependency('php''4.3.0''ge''php'false);
  74. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  75. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  76. $package->addDependency('oci8'null'has''ext'false);
  77.  
  78. $package->addglobalreplacement('package-info''@package_version@''version');
  79.  
  80. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  81.     $result $package->writePackageFile();
  82. else {
  83.     $result $package->debugPackageFile();
  84. }
  85.  
  86. if (PEAR::isError($result)) {
  87.     echo $result->getMessage();
  88.     die();
  89. }

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