ID:               36248
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Admin at relax-info dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         cURL related
 Operating System: WIN XP SP2
 PHP Version:      4.4.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-02-01 17:40:49] Admin at relax-info dot com

Sorry, callback function example...
        function _header_callback($ch, $header)
        {
//              print_r($header);
        }

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

[2006-02-01 17:39:51] Admin at relax-info dot com

Description:
------------
Couldn't set the name of a callback function where the callback
function exists in a class, array($this, 'callback_function'). Apache
die ...


Reproduce code:
---------------
class CURL
{
var $_ch;
.....
$this->_ch = curl_init();
..
curl_setopt($this->_ch, CURLOPT_HEADERFUNCTION, array($this,
'_header_callback'));
..
}

Expected result:
----------------
The name of a callback function can be method of class
array($this, 'callback_function')

Actual result:
--------------
Apache die ...


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


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

Reply via email to