Bug 251677 - error in log when using php5 syntax with php4 project
Summary: error in log when using php5 syntax with php4 project
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: Other All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nir Cohen CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-10-22 05:52 EDT by Gadi Goldbarg CLA
Modified: 2020-05-14 11:17 EDT (History)
8 users (show)

See Also:


Attachments
Avoid the exception (2.16 KB, patch)
2009-01-08 01:02 EST, Q.S. Wang CLA
jacek.pospychala: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gadi Goldbarg CLA 2008-10-22 05:52:47 EDT
try the following code:

<?php
class Test {
	public function __construct()
	{
		// get global database objects
		global $db, $dbs;
		// set databases
		$this->_objDatabaseRead = $dbs->CONN;
		$this->_objDatabaseWrite = new DatingDB();//$db->CONN;
		// configure databases
		$this->_objDatabaseRead->GetAssoc();//|<<here... ( ADODB_FETCH_ASSOC );
		$this->_objDatabaseWrite->SetFetchMode ( ADODB_FETCH_ASSOC );
	}
}

?>
Comment 1 Roy Ganor CLA 2008-11-02 07:44:24 EST
targeting to PDT 2.0 M2

Comment 2 Q.S. Wang CLA 2009-01-08 01:02:50 EST
Created attachment 121917 [details]
Avoid the exception
Comment 3 Q.S. Wang CLA 2009-01-08 01:04:07 EST
The patch is only avoid the exception.
Comment 4 Michael Spector CLA 2009-01-08 09:06:37 EST
Applied to 2.0.1 and HEAD (modified slightly the patch)
Comment 5 Gadi Goldbarg CLA 2009-02-04 06:29:08 EST
Verified Fixed.
pdt-all-in-one
2.1.0M4
N20090203

Kalin Yanev 
kalin.a@zend.com