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

Source for file package_mysqli.php

Documentation is available at package_mysqli.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. 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. - added support for auto increment and primary key in schema.
  15. - alterTable now needs the full definition to work (use getTableFieldDefinition
  16.  from Reverse module if you do not have a definition at hand) this eliminates the need
  17.  of the declaration part in the alterTable array.
  18. - removed support for dummy_primary_key
  19. - fix PHP4.4 breakage
  20. - moved getInsertID() into core as lastInsertID()
  21. - all non LOB values were quoted twice in execute()
  22. - clobs only need to be mapped to binary when using mysqli_stmt_send_long_data()
  23.   which is handled independently
  24. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  25. - expect keys in type arrays the same way as they are passed for the values in execute() and bindParamArray()
  26. - add s pattern modifier to preg_replace() call for parameter searches in prepare() (bug #5362)
  27. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  28. - 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)
  29. - count() -> !empty() where possible
  30. - use array_map() instead of array_flip(array_change_key_case(array_flip())) to fix case of array values
  31. - use array_key_exists() instead of isset() where possible
  32. - changed structure of field add/remove/change in alterTable() to match MDB2_Schema
  33. - removed subSelect() implementation (now in already included in common)
  34. - return 0 for manipulation queries when disable_query is enabled
  35. - tweaked getTableFieldDefinition() in reverse module
  36.  
  37. open todo items:
  38. - fixed LOB support
  39. EOT;
  40.  
  41. $package = new PEAR_PackageFileManager();
  42.  
  43. $result $package->setOptions(
  44.     array(
  45.         'packagefile'       => 'package_mysqli.xml',
  46.         'package'           => 'MDB2_Driver_mysqli',
  47.         'summary'           => 'mysqli MDB2 driver',
  48.         'description'       => 'This is the MySQLi MDB2 driver.',
  49.         'version'           => $version,
  50.         'state'             => 'alpha',
  51.         'license'           => 'BSD License',
  52.         'filelistgenerator' => 'cvs',
  53.         'include'           => array('*mysqli*'),
  54.         'notes'             => $notes,
  55.         'changelogoldtonew' => false,
  56.         'simpleoutput'      => true,
  57.         'baseinstalldir'    => '/',
  58.         'packagedirectory'  => './',
  59.         'dir_roles'         => array(
  60.             'docs' => 'doc',
  61.              'examples' => 'doc',
  62.              'tests' => 'test',
  63.              'tests/templates' => 'test',
  64.         ),
  65.     )
  66. );
  67.  
  68. if (PEAR::isError($result)) {
  69.     echo $result->getMessage();
  70.     die();
  71. }
  72.  
  73. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  74.  
  75. $package->addDependency('php''5.0.0''ge''php'false);
  76. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  77. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  78. $package->addDependency('mysqli'null'has''ext'false);
  79.  
  80. $package->addglobalreplacement('package-info''@package_version@''version');
  81.  
  82. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  83.     $result $package->writePackageFile();
  84. else {
  85.     $result $package->debugPackageFile();
  86. }
  87.  
  88. if (PEAR::isError($result)) {
  89.     echo $result->getMessage();
  90.     die();
  91. }

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