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

Source for file ibase.php

Documentation is available at ibase.php

  1. <?php
  2. // +----------------------------------------------------------------------+
  3. // | PHP versions 4 and 5                                                 |
  4. // +----------------------------------------------------------------------+
  5. // | Copyright (c) 1998-2005 Manuel Lemos, Tomas V.V.Cox,                 |
  6. // | Stig. S. Bakken, Lukas Smith, Frank M. Kromann, Lorenzo Alberton     |
  7. // | All rights reserved.                                                 |
  8. // +----------------------------------------------------------------------+
  9. // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
  10. // | API as well as database abstraction for PHP applications.            |
  11. // | This LICENSE is in the BSD license style.                            |
  12. // |                                                                      |
  13. // | Redistribution and use in source and binary forms, with or without   |
  14. // | modification, are permitted provided that the following conditions   |
  15. // | are met:                                                             |
  16. // |                                                                      |
  17. // | Redistributions of source code must retain the above copyright       |
  18. // | notice, this list of conditions and the following disclaimer.        |
  19. // |                                                                      |
  20. // | Redistributions in binary form must reproduce the above copyright    |
  21. // | notice, this list of conditions and the following disclaimer in the  |
  22. // | documentation and/or other materials provided with the distribution. |
  23. // |                                                                      |
  24. // | Neither the name of Manuel Lemos, Tomas V.V.Cox, Stig. S. Bakken,    |
  25. // | Lukas Smith nor the names of his contributors may be used to endorse |
  26. // | or promote products derived from this software without specific prior|
  27. // | written permission.                                                  |
  28. // |                                                                      |
  29. // | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  |
  30. // | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT    |
  31. // | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS    |
  32. // | FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE      |
  33. // | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,          |
  34. // | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
  35. // | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS|
  36. // |  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  |
  37. // | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT          |
  38. // | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY|
  39. // | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE          |
  40. // | POSSIBILITY OF SUCH DAMAGE.                                          |
  41. // +----------------------------------------------------------------------+
  42. // | Author: Lorenzo Alberton <l.alberton@quipo.it>                       |
  43. // +----------------------------------------------------------------------+
  44. //
  45. // $Id: ibase.php,v 1.35 2006/01/13 20:39:05 quipo Exp $
  46. //
  47.  
  48. require_once 'MDB2/Driver/Reverse/Common.php';
  49.  
  50. /**
  51.  * MDB2 InterbaseBase driver for the reverse engineering module
  52.  *
  53.  * @package MDB2
  54.  * @category Database
  55.  * @author Lorenzo Alberton  <l.alberton@quipo.it>
  56.  */
  57. class MDB2_Driver_Reverse_ibase extends MDB2_Driver_Reverse_Common
  58. {
  59.     /**
  60.      * Array for converting constant values to text values
  61.      * @var    array 
  62.      * @access public
  63.      */
  64.     var $types = array(
  65.         7   => 'smallint',
  66.         8   => 'integer',
  67.         9   => 'quad',
  68.         10  => 'float',
  69.         11  => 'd_float',
  70.         12  => 'date',      //dialect 3 DATE
  71.         13  => 'time',
  72.         14  => 'char',
  73.         16  => 'int64',
  74.         27  => 'double',
  75.         35  => 'timestamp'//DATE in older versions
  76.         37  => 'varchar',
  77.         40  => 'cstring',
  78.         261 => 'blob',
  79.     );
  80.  
  81.     /**
  82.      * Array for converting constant values to text values
  83.      * @var    array 
  84.      * @access public
  85.      */
  86.     var $subtypes = array(
  87.         //char subtypes
  88.         14 => array(
  89.             0 => 'unspecified',
  90.             1 => 'fixed'//BINARY data
  91.         ),
  92.         //blob subtypes
  93.         261 => array(
  94.             0 => 'unspecified',
  95.             1 => 'text',
  96.             2 => 'BLR'//Binary Language Representation
  97.             3 => 'access control list',
  98.             4 => 'reserved for future use',
  99.             5 => 'encoded description of a table\'s current metadata',
  100.             6 => 'description of multi-database transaction that finished irregularly',
  101.         ),
  102.         //smallint subtypes
  103.         7 => array(
  104.             0 => 'RDB$FIELD_TYPE',
  105.             1 => 'numeric',
  106.             2 => 'decimal',
  107.         ),
  108.         //integer subtypes
  109.         8 => array(
  110.             0 => 'RDB$FIELD_TYPE',
  111.             1 => 'numeric',
  112.             2 => 'decimal',
  113.         ),
  114.         //int64 subtypes
  115.         16 => array(
  116.             0 => 'RDB$FIELD_TYPE',
  117.             1 => 'numeric',
  118.             2 => 'decimal',
  119.         ),
  120.     );
  121.  
  122.     // {{{ getTableFieldDefinition()
  123.  
  124.     /**
  125.      * get the stucture of a field into an array
  126.      *
  127.      * @param string    $table         name of table that should be used in method
  128.      * @param string    $field_name     name of field that should be used in method
  129.      * @return mixed data array on success, a MDB2 error on failure
  130.      * @access public
  131.      */
  132.     function getTableFieldDefinition($table$field_name)
  133.     {
  134.         $db =$this->getDBInstance();
  135.         if (PEAR::isError($db)) {
  136.             return $db;
  137.         }
  138.  
  139.         $result $db->loadModule('Datatype'nulltrue);
  140.         if (PEAR::isError($result)) {
  141.             return $result;
  142.         }
  143.         $table strtoupper($table);
  144.         $field_name strtoupper($field_name);
  145.         $query = "SELECT RDB\$RELATION_FIELDS.RDB\$FIELD_NAME AS name,
  146.                          RDB\$FIELDS.RDB\$FIELD_LENGTH AS \"length\",
  147.                          RDB\$FIELDS.RDB\$FIELD_TYPE AS field_type_code,
  148.                          RDB\$FIELDS.RDB\$FIELD_SUB_TYPE AS field_sub_type_code,
  149.                          RDB\$RELATION_FIELDS.RDB\$DESCRIPTION AS description,
  150.                          RDB\$RELATION_FIELDS.RDB\$NULL_FLAG AS null_flag,
  151.                          RDB\$RELATION_FIELDS.RDB\$DEFAULT_SOURCE AS default_source
  152.                     FROM RDB\$FIELDS
  153.                LEFT JOIN RDB\$RELATION_FIELDS ON RDB\$FIELDS.RDB\$FIELD_NAME = RDB\$RELATION_FIELDS.RDB\$FIELD_SOURCE
  154.                    WHERE UPPER(RDB\$RELATION_FIELDS.RDB\$RELATION_NAME)='$table'
  155.                      AND UPPER(RDB\$RELATION_FIELDS.RDB\$FIELD_NAME)='$field_name';";
  156.         $column $db->queryRow($querynullMDB2_FETCHMODE_ASSOC);
  157.         if (PEAR::isError($column)) {
  158.             return $column;
  159.         }
  160.         if (empty($column)) {
  161.             return $db->raiseError(MDB2_ERRORnullnull,
  162.                 'getTableFieldDefinition: it was not specified an existing table column');
  163.         }
  164.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  165.             if ($db->options['field_case'== CASE_LOWER{
  166.                 $column['name'strtolower($column['name']);
  167.             else {
  168.                 $column['name'strtoupper($column['name']);
  169.             }
  170.         else {
  171.             $column array_change_key_case($column$db->options['field_case']);
  172.         }
  173.  
  174.         $column['type'array_key_exists($column['field_type_code']$this->types)
  175.             ? $this->types[(int)$column['field_type_code']] 'undefined';
  176.         if ($column['field_sub_type_code']
  177.             && array_key_exists($column['field_type_code']$this->subtypes)
  178.             && array_key_exists($column['field_sub_type_code']$this->subtypes[(int)$column['field_type_code']])
  179.         {
  180.             $column['field_sub_type'$this->subtypes[(int)$column['field_type_code']][$column['field_sub_type_code']];
  181.         else {
  182.             $column['field_sub_type'= null;
  183.         }
  184.         list($types$length$unsigned$db->datatype->mapNativeDatatype($column);
  185.         $notnull !empty($column['null_flag']);
  186.         $default $column['default_source'];
  187.         if (is_null($default&& $notnull{
  188.             $default ($types[0== 'integer'? 0 : '';
  189.         }
  190.         $definition = array();
  191.         foreach ($types as $key => $type{
  192.             $definition[$key= array(
  193.                 'type'    => $type,
  194.                 'notnull' => $notnull,
  195.             );
  196.             if ($length > 0{
  197.                 $definition[$key]['length'$length;
  198.             }
  199.             if ($unsigned{
  200.                 $definition[$key]['unsigned'= true;
  201.             }
  202.             $definition[$key]['default'$default;
  203.         }
  204.         return $definition;
  205.     }
  206.  
  207.     // }}}
  208.     // {{{ getTableIndexDefinition()
  209.  
  210.     /**
  211.      * get the stucture of an index into an array
  212.      *
  213.      * @param string    $table      name of table that should be used in method
  214.      * @param string    $index_name name of index that should be used in method
  215.      * @return mixed data array on success, a MDB2 error on failure
  216.      * @access public
  217.      */
  218.     function getTableIndexDefinition($table$index_name)
  219.     {
  220.         $db =$this->getDBInstance();
  221.         if (PEAR::isError($db)) {
  222.             return $db;
  223.         }
  224.         $table strtoupper($table);
  225.         $index_name strtoupper($db->getIndexName($index_name));
  226.         $query = "SELECT RDB\$INDEX_SEGMENTS.RDB\$FIELD_NAME AS field_name,
  227.                          RDB\$INDICES.RDB\$UNIQUE_FLAG AS unique_flag,
  228.                          RDB\$INDICES.RDB\$FOREIGN_KEY AS foreign_key,
  229.                          RDB\$INDICES.RDB\$DESCRIPTION AS description,
  230.                          RDB\$RELATION_CONSTRAINTS.RDB\$CONSTRAINT_TYPE as constraint_type
  231.                     FROM RDB\$INDEX_SEGMENTS
  232.                LEFT JOIN RDB\$INDICES ON RDB\$INDICES.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  233.                LEFT JOIN RDB\$RELATION_CONSTRAINTS ON RDB\$RELATION_CONSTRAINTS.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  234.                    WHERE UPPER(RDB\$INDICES.RDB\$RELATION_NAME)='$table'
  235.                      AND UPPER(RDB\$INDICES.RDB\$INDEX_NAME)='$index_name'
  236.                      AND (RDB\$RELATION_CONSTRAINTS.RDB\$CONSTRAINT_TYPE IS NULL OR
  237.                           RDB\$RELATION_CONSTRAINTS.RDB\$CONSTRAINT_TYPE <> 'PRIMARY KEY')
  238.                 ORDER BY RDB\$INDEX_SEGMENTS.RDB\$FIELD_POSITION;";
  239.         $result $db->query($query);
  240.         if (PEAR::isError($result)) {
  241.             return $result;
  242.         }
  243.  
  244.         $index $row $result->fetchRow(MDB2_FETCHMODE_ASSOC);
  245.         if (empty($index)) {
  246.             return $db->raiseError(MDB2_ERROR_NOT_FOUNDnullnull,
  247.                 'getTableIndexDefinition: it was not specified an existing table index');
  248.         }
  249.         $fields = array();
  250.         do {
  251.             $fields[$row['field_name'];
  252.         while (is_array($row $result->fetchRow(MDB2_FETCHMODE_ASSOC)));
  253.         $result->free();
  254.  
  255.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  256.             $fields array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$fields);
  257.         }
  258.  
  259.         $definition = array();
  260.         if ($index['unique_flag']{
  261.             $definition['unique'= true;
  262.         }
  263.         foreach ($fields as $field{
  264.             $definition['fields'][$field= array();
  265.             //collation?!?
  266.             /*
  267.             if (array_key_exists('collation', $row)) {
  268.                 $definition['fields'][$field]['sorting'] = ($row['collation'] == 'A'
  269.                     ? 'ascending' : 'descending');
  270.             }
  271.             */
  272.         }
  273.         return $definition;
  274.     }
  275.  
  276.     // }}}
  277.     // {{{ getTableConstraintDefinition()
  278.  
  279.     /**
  280.      * get the stucture of a constraint into an array
  281.      *
  282.      * @param string    $table      name of table that should be used in method
  283.      * @param string    $index_name name of index that should be used in method
  284.      * @return mixed data array on success, a MDB2 error on failure
  285.      * @access public
  286.      */
  287.     function getTableConstraintDefinition($table$index_name)
  288.     {
  289.         $db =$this->getDBInstance();
  290.         if (PEAR::isError($db)) {
  291.             return $db;
  292.         }
  293.         $table strtoupper($table);
  294.         $index_name strtoupper($db->getIndexName($index_name));
  295.         $query = "SELECT RDB\$INDEX_SEGMENTS.RDB\$FIELD_NAME AS field_name,
  296.                          RDB\$INDICES.RDB\$UNIQUE_FLAG AS unique_flag,
  297.                          RDB\$INDICES.RDB\$FOREIGN_KEY AS foreign_key,
  298.                          RDB\$INDICES.RDB\$DESCRIPTION AS description,
  299.                          RDB\$RELATION_CONSTRAINTS.RDB\$CONSTRAINT_TYPE as constraint_type
  300.                     FROM RDB\$INDEX_SEGMENTS
  301.                LEFT JOIN RDB\$INDICES ON RDB\$INDICES.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  302.                LEFT JOIN RDB\$RELATION_CONSTRAINTS ON RDB\$RELATION_CONSTRAINTS.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  303.                    WHERE UPPER(RDB\$INDICES.RDB\$RELATION_NAME)='$table'
  304.                      AND UPPER(RDB\$INDICES.RDB\$INDEX_NAME)='$index_name'
  305.                 ORDER BY RDB\$INDEX_SEGMENTS.RDB\$FIELD_POSITION;";
  306.         $result $db->query($query);
  307.         if (PEAR::isError($result)) {
  308.             return $result;
  309.         }
  310.  
  311.         $index $row $result->fetchRow(MDB2_FETCHMODE_ASSOC);
  312.         if (empty($index)) {
  313.             return $db->raiseError(MDB2_ERROR_NOT_FOUNDnullnull,
  314.                 'getTableConstraintDefinition: it was not specified an existing table constraint');
  315.         }
  316.         $fields = array();
  317.         do {
  318.             $fields[$row['field_name'];
  319.         while (is_array($row $result->fetchRow(MDB2_FETCHMODE_ASSOC)));
  320.         $result->free();
  321.  
  322.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  323.             $fields array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$fields);
  324.         }
  325.  
  326.         $definition = array();
  327.         if ($index['constraint_type'== 'PRIMARY KEY'{
  328.             $definition['primary'= true;
  329.         }
  330.         if (!$index['unique_flag'&& !$index['foreign_key']{
  331.             return $db->raiseError(MDB2_ERROR_NOT_FOUNDnullnull,
  332.                 'getTableConstraintDefinition: it was not specified an existing table constraint');
  333.         }
  334.         foreach ($fields as $field{
  335.             $definition['fields'][$field= array();
  336.             //collation?!?
  337.             /*
  338.             if (array_key_exists('collation', $row)) {
  339.                 $definition['fields'][$field]['sorting'] = ($row['collation'] == 'A'
  340.                     ? 'ascending' : 'descending');
  341.             }
  342.             */
  343.         }
  344.         return $definition;
  345.     }
  346.  
  347.     // }}}
  348.     // {{{ tableInfo()
  349.  
  350.     /**
  351.      * Returns information about a table or a result set
  352.      *
  353.      * NOTE: only supports 'table' and 'flags' if <var>$result</var>
  354.      * is a table name.
  355.      *
  356.      * @param object|string $result  MDB2_result object from a query or a
  357.      *                                  string containing the name of a table.
  358.      *                                  While this also accepts a query result
  359.      *                                  resource identifier, this behavior is
  360.      *                                  deprecated.
  361.      * @param int            $mode    a valid tableInfo mode
  362.      *
  363.      * @return array  an associative array with the information requested.
  364.      *                  A MDB2_Error object on failure.
  365.      *
  366.      * @see MDB2_Driver_Common::tableInfo()
  367.      */
  368.     function tableInfo($result$mode = null)
  369.     {
  370.         $db =$this->getDBInstance();
  371.         if (PEAR::isError($db)) {
  372.             return $db;
  373.         }
  374.  
  375.         if (is_string($result)) {
  376.             /*
  377.              * Probably received a table name.
  378.              * Create a result resource identifier.
  379.              */
  380.             $id $db->_doQuery("SELECT * FROM $result WHERE 1=0"false);
  381.             if (PEAR::isError($id)) {
  382.                 return $id;
  383.             }
  384.             $got_string = true;
  385.         elseif (MDB2::isResultCommon($result)) {
  386.             /*
  387.              * Probably received a result object.
  388.              * Extract the result resource identifier.
  389.              */
  390.             $id $result->getResource();
  391.             $got_string = false;
  392.         else {
  393.             /*
  394.              * Probably received a result resource identifier.
  395.              * Copy it.
  396.              * Deprecated.  Here for compatibility only.
  397.              */
  398.             $id $result;
  399.             $got_string = false;
  400.         }
  401.  
  402.         if (!is_resource($id)) {
  403.             return $db->raiseError(MDB2_ERROR_NEED_MORE_DATA);
  404.         }
  405.  
  406.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  407.             if ($db->options['field_case'== CASE_LOWER{
  408.                 $case_func 'strtolower';
  409.             else {
  410.                 $case_func 'strtoupper';
  411.             }
  412.         else {
  413.             $case_func 'strval';
  414.         }
  415.  
  416.         $count @ibase_num_fields($id);
  417.         $res   = array();
  418.  
  419.         if ($mode{
  420.             $res['num_fields'$count;
  421.         }
  422.  
  423.         $db->loadModule('Datatype'nulltrue);
  424.         for ($i = 0; $i $count$i++{
  425.             $info @ibase_field_info($id$i);
  426.             if (($pos strpos($info['type']'(')) !== false{
  427.                 $info['type'substr($info['type']0$pos);
  428.             }
  429.             $res[$i= array(
  430.                 'table'  => $got_string $case_func($result'',
  431.                 'name'   => $case_func($info['name']),
  432.                 'type'   => $info['type'],
  433.                 'length' => $info['length'],
  434.                 'flags'  => ($got_string)
  435.                             ? $this->_ibaseFieldFlags($info['name']$result'',
  436.             );
  437.             $mdb2type_info $db->datatype->mapNativeDatatype($res[$i]);
  438.             if (PEAR::isError($mdb2type_info)) {
  439.                return $mdb2type_info;
  440.             }
  441.             $res[$i]['mdb2type'$mdb2type_info[0][0];
  442.             if ($mode MDB2_TABLEINFO_ORDER{
  443.                 $res['order'][$res[$i]['name']] $i;
  444.             }
  445.             if ($mode MDB2_TABLEINFO_ORDERTABLE{
  446.                 $res['ordertable'][$res[$i]['table']][$res[$i]['name']] $i;
  447.             }
  448.         }
  449.  
  450.         // free the result only if we were called on a table
  451.         if ($got_string{
  452.             @ibase_free_result($id);
  453.         }
  454.         return $res;
  455.     }
  456.  
  457.     // }}}
  458.     // {{{ _ibaseFieldFlags()
  459.  
  460.     /**
  461.      * Get the column's flags
  462.      *
  463.      * Supports "primary_key", "unique_key", "not_null", "default",
  464.      * "computed" and "blob".
  465.      *
  466.      * @param string $field_name  the name of the field
  467.      * @param string $table_name  the name of the table
  468.      *
  469.      * @return string  the flags
  470.      *
  471.      * @access protected
  472.      */
  473.     function _ibaseFieldFlags($field_name$table_name)
  474.     {
  475.         $db =$this->getDBInstance();
  476.         if (PEAR::isError($db)) {
  477.             return $db;
  478.         }
  479.  
  480.         $query 'SELECT R.RDB$CONSTRAINT_TYPE CTYPE'
  481.                .' FROM RDB$INDEX_SEGMENTS I'
  482.                .'  JOIN RDB$RELATION_CONSTRAINTS R ON I.RDB$INDEX_NAME=R.RDB$INDEX_NAME'
  483.                .' WHERE I.RDB$FIELD_NAME=\'' $field_name '\''
  484.                .'  AND UPPER(R.RDB$RELATION_NAME)=\'' strtoupper($table_name'\'';
  485.  
  486.         $result $db->_doQuery($queryfalse);
  487.         if (PEAR::isError($result)) {
  488.             return $result;
  489.         }
  490.  
  491.         $flags '';
  492.         if ($obj @ibase_fetch_object($result)) {
  493.             @ibase_free_result($result);
  494.             if (isset($obj->CTYPE)  && trim($obj->CTYPE== 'PRIMARY KEY'{
  495.                 $flags.= 'primary_key ';
  496.             }
  497.             if (isset($obj->CTYPE)  && trim($obj->CTYPE== 'UNIQUE'{
  498.                 $flags.= 'unique_key ';
  499.             }
  500.         }
  501.  
  502.         $query 'SELECT R.RDB$NULL_FLAG AS NFLAG,'
  503.                .'  R.RDB$DEFAULT_SOURCE AS DSOURCE,'
  504.                .'  F.RDB$FIELD_TYPE AS FTYPE,'
  505.                .'  F.RDB$COMPUTED_SOURCE AS CSOURCE'
  506.                .' FROM RDB$RELATION_FIELDS R '
  507.                .'  JOIN RDB$FIELDS F ON R.RDB$FIELD_SOURCE=F.RDB$FIELD_NAME'
  508.                .' WHERE UPPER(R.RDB$RELATION_NAME)=\'' strtoupper($table_name'\''
  509.                .'  AND R.RDB$FIELD_NAME=\'' $field_name '\'';
  510.  
  511.         $result $db->_doQuery($queryfalse);
  512.         if (PEAR::isError($result)) {
  513.             return $result;
  514.         }
  515.  
  516.         if ($obj @ibase_fetch_object($result)) {
  517.             @ibase_free_result($result);
  518.             if (isset($obj->NFLAG)) {
  519.                 $flags.= 'not_null ';
  520.             }
  521.             if (isset($obj->DSOURCE)) {
  522.                 $flags.= 'default ';
  523.             }
  524.             if (isset($obj->CSOURCE)) {
  525.                 $flags.= 'computed ';
  526.             }
  527.             if (isset($obj->FTYPE)  && $obj->FTYPE == 261{
  528.                 $flags.= 'blob ';
  529.             }
  530.         }
  531.  
  532.         return trim($flags);
  533.     }
  534. }
  535. ?>

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