Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
php-epp
Commits
86f379f0
Unverified
Commit
86f379f0
authored
Dec 15, 2019
by
Nathan Van Overloop
Browse files
centralnic/issues#3769: more debug
parent
0b641c70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Net/EPP/Client.php
View file @
86f379f0
...
...
@@ -81,7 +81,6 @@
if
(
is_resource
(
$context
))
{
if
(
$this
->
debug
)
debug_log
(
"using your provided context resource"
);
$result
=
stream_socket_client
(
$target
,
$errno
,
$errstr
,
$timeout
,
STREAM_CLIENT_CONNECT
,
$context
);
}
else
{
...
...
@@ -105,7 +104,12 @@
throw
new
Exception
(
"non errono 0 retrieved from socket connection:
{
$errno
}
"
);
}
}
else
{
throw
new
Exception
(
"Connection could not be opened:
$errno
$errstr
"
);
if
(
$result
===
FALSE
&&
$errno
==
0
){
throw
new
Exception
(
"Connection could not be opened due to socket problem"
);
}
else
{
throw
new
Exception
(
"Connection could not be opened:
$errno
$errstr
"
);
}
}
...
...
@@ -115,7 +119,7 @@
}
$this
->
timeout
=
$timeout
;
$GLOBALS
[
'timeout'
]
=
$timeout
;
// Set blocking
if
(
!
stream_set_blocking
(
$this
->
socket
,
0
))
{
throw
new
Exception
(
"Failed to set blocking on socket:
$errstr
(code
$errno
)"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment