Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2007, 03:26 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default Strange characters output from $db->fetchAll

Hi,

I just started playiing with ZF and got an interesting output. Here's my simple test php:

<?php

require_once("Zend/Db/Adapter/Pdo/Mysql.php");

$db = new Zend_Db_Adapter_Pdo_Mysql(array(
'host' => 'xxx.com',
'username' => 'xxx',
'password' => 'xxx',
'dbname' => 'wp'
));

$db->setFetchMode(Zend_Db::FETCH_OBJ);
$result = $db->fetchAll('SELECT * FROM wp_posts', 2);
echo $result[0]->id;

?>

The output is:

1:/`(``|[^`])*`/
2:/'(|[^'])*'/

Any idea what's happening here?

-Aaron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-29-2007, 06:52 PM
Junior Member
 
Join Date: Nov 2007
Location: Elmshorn, Germany
Posts: 9
Send a message via ICQ to t-mow
Default

this was a bug in the svn-repository... it has been fixed at.. tuesday or so

so just update your library from the SVN server and it will work again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:31 PM.