Fullscreen
Loading...
 
Skip to main content

Scope operator to access PDO properties and methods for $Tikidb fails : execution fail wit php 3.3.1

Status
Closed
Subject
Scope operator to access PDO properties and methods for $Tikidb fails : execution fail wit php 3.3.1
Version
4.x
Category
  • Consistency
  • Error
Feature
Database independence (Non-Mysql, ADOdb Postgres, Oracle, etc)
Resolution status
Fixed or Solved
Submitted by
Bernard TREMBLAY
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

Hello,

These is a partial solution to ticket 3029 which I can't access.
I was wrong in my search of causes of the problem.

The installation in my configuration described in 3029 don't supports the following :

The TikiWiki sequence with tiki-setup_base and tikisession-pdo
first creates the object
$dbTiki = new PDO(......)
just after seems to extends the class by
TikiDb::set( new TikiDb_Pdo( $dbTiki ) );

Most installations are able to hold the following (tikisession:open)
TikiDb::get()->setAttribute(PDO:....);
TikiDb::get()->getAttribute(PDO:....);

and just after execute tikisession:read with this

$sth=TikiDb::get()->prepare($sql);
$sth->execute();

This don't functions (probably php 3.3.1), the PDO methods and attributes can't be accessed by this mean.

The scope operator is not able to reach PDO (builtin by extension) class PDO in my context :
either windows version (improbable) and php 3.3.1
On my services provider OVH which run php 3.2.x everything functions

Zend uses interfaces and other objects.
In my opinion :
$sth must be set as new object with "PDO_Statement" properties (interface of zend and implementation)
When I implement the good properties and class I go much more further
in the execution.

But how to make function whole 4.1 with this scope operator problem ?

Solution
Workaround
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3057
Created
Monday 01 March, 2010 04:25:30 UTC
by Bernard TREMBLAY
LastModif
Monday 01 June, 2026 21:20:34 UTC


Show PHP error messages