ZF-10871: Socket adapter's error handler may emit Notice for undefined variable: errno
Description
Notice: Undefined variable: errno in /path/Zend/Http/Client/Adapter/Socket.php on line 236
Backtrace -->
Notice: Undefined variable: errno in /path/Zend/Http/Client/Adapter/Socket.php on line 236
Backtrace -->
Comments
Posted by matthieu (matthieu) on 2012-03-01T00:57:53.000+0000
Would it be possible for a Zend Developer to fix this NOTICE error message?
It affects us at Piwik.org as we are seeing the notice. WE would love not to patch our local copy. Fixing all NOTICEs is best practise. Thank you for your time!
Reported bug in Piwik: http://dev.piwik.org/trac/ticket/2988
As well as "undefined errno" in the ticket there is also: Notice: Undefined variable: errstr in /home/xxx/httpdocs/piwik/libs/Zend/Http/Client/Adapter/Socket.php on line 236
Posted by Anthon Pang, VIP Software Technologies Inc. (vipsoft) on 2012-03-01T02:26:36.000+0000
The cause is when stream_socket_client is disabled, $errno and $errstr (which are passed by reference) are never initialized by the function.
The patch is: