Donate Share

PHP OpenSRS Client

Tracker: Bugs

5 'lookup' doesnt function for $RELATED_TLDS if SSL is used - ID: 1762651
Last Update: Comment added ( yurtesen )

When ssl is used, after each read data the socket is closed so the related
TLD lookups fail. Socket must be reinitialized for every TLD if SSL is
used. Otherwise one gets read/write errors to socket after 1st lookup is
done.

372a373
>
794a796
>
800,804d801
< # When SSL is used socket is closed after each
read
< if (!$this->_socket && 'SSL' == $this->crypt_type)
{
< $this->init_socket();
< }
<
805a803
>
850d847
<


While on it, when SSL is used, Crypt/CBC is not required. So you could
change the line
require_once 'Crypt/CBC.php';
to
include_once 'Crypt/CBC.php';
(or wrap it inside a if statement where if SSL is used then not require
it)

Thanks,
Evren


Evren Yurtesen ( yurtesen ) - 2007-07-28 12:40

5

Open

None

Nobody/Anonymous

Base class functionality

None

Public


Comments ( 2 )




Date: 2009-11-25 13:20
Sender: yurtesen

I dont quite remember exactly what was the problem anymore :(

Obviously I provided a diff for the fix I made in 2007 but that might be
fixed already... I have nothing more to add (since I dont remember much)
so you can close this report if it is not clear.


Date: 2009-11-25 11:58
Sender: hm2kProject Admin

Please can you provide a patch instead? I don't understand your suggested
changes.

I seen no harm in changing require_once to include_once in this instance.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.