[pLog-svn] r3486 - plog/trunk/class/database/pdb/drivers

Jon Daley plogworld at jon.limedaley.com
Mon May 29 11:51:19 GMT 2006


 	Where were the warnings occurring?  That probably means I was 
calling Close in the wrong place, and the call should be removed.  Close's 
are only appropriate on some operations.

  On Mon, 29 May 2006, mark at devel.lifetype.net wrote:

> Author: mark
> Date: 2006-05-29 06:41:54 +0000 (Mon, 29 May 2006)
> New Revision: 3486
>
> Modified:
>   plog/trunk/class/database/pdb/drivers/pdbmysqlrecordset.class.php
> Log:
> Add @ in front of mysql_free_results to aviod warnings ...
>
> Modified: plog/trunk/class/database/pdb/drivers/pdbmysqlrecordset.class.php
> ===================================================================
> --- plog/trunk/class/database/pdb/drivers/pdbmysqlrecordset.class.php	2006-05-29 06:33:11 UTC (rev 3485)
> +++ plog/trunk/class/database/pdb/drivers/pdbmysqlrecordset.class.php	2006-05-29 06:41:54 UTC (rev 3486)
> @@ -1,39 +1,39 @@
> -<?php
> -
> -	include_once( PLOG_CLASS_PATH."class/database/pdb/drivers/pdbrecordset.class.php" );
> +<?php
>
> +	include_once( PLOG_CLASS_PATH."class/database/pdb/drivers/pdbrecordset.class.php" );
> +
>     /**
>      * \ingroup PDb
>      *
>      * MySQL record sets.
>      *
>      * @see PDbRecordSet
> -     */
> -	class PdbMySQLRecordSet extends PdbRecordSet
> -	{
> +     */
> +	class PdbMySQLRecordSet extends PdbRecordSet
> +	{
>
> 	    /**
> 	     * @see PDbRecordSet
> -	     */
> -		function PdbMySQLRecordSet( $dbRes = null )
> -		{
> -			$this->PdbRecordSet( $dbRes );
> -		}
> +	     */
> +		function PdbMySQLRecordSet( $dbRes = null )
> +		{
> +			$this->PdbRecordSet( $dbRes );
> +		}
>
> 	    /**
> 	     * @see PDbRecordSet::FetchRow()
> -	     */
> -		function FetchRow()
> -		{
> -			return( mysql_fetch_assoc( $this->_dbRes ));
> -		}
> +	     */
> +		function FetchRow()
> +		{
> +			return( mysql_fetch_assoc( $this->_dbRes ));
> +		}
>
> 	    /**
> 	     * @see PDbRecordSet::RecordCount()
> -	     */
> -		function RecordCount()
> -		{
> -			return( mysql_num_rows( $this->_dbRes ));
> +	     */
> +		function RecordCount()
> +		{
> +			return( mysql_num_rows( $this->_dbRes ));
> 		}
>
> 	    /**
> @@ -41,7 +41,7 @@
> 	     */
> 		function Close()
> 		{
> -		    return( mysql_free_result( $this->_dbRes ));
> -		}
> -	}
> +		    return( @mysql_free_result( $this->_dbRes ));
> +		}
> +	}
> ?>
> \ No newline at end of file
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>

**************************************
Jon Daley
http://jon.limedaley.com/

There is no mechanical problem so difficult that
it cannot be solved by brute strength and ignorance.
-- William's Law


More information about the pLog-svn mailing list