#37167 [Opn->Fbk]: PDO::FETCH_FUNC doesn't work with a callback

From: Date: Sat, 22 Apr 2006 17:44:55 +0000
Subject: #37167 [Opn->Fbk]: PDO::FETCH_FUNC doesn't work with a callback
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96108@lists.php.net to get a copy of this message
 ID:               37167
 Updated by:       tony2001@php.net
 Reported By:      troelskn at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         PDO related
 Operating System: *
 PHP Version:      5.1.2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2006-04-22 15:30:52] troelskn at gmail dot com

Description:
------------
Using PDO::FETCH_FUNC with fetchAll() only works with a function. It
would be nice if it worked with a normal callback type (as in
call_user_func and others).

If this can't be fixed, the error message must be changed, since
"General error: user-supplied function must be a valid callback" is
misleading.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37167&edit=1


Thread (4 messages)

« previous php.bugs (#96108) next »