Skip to content
Snippets Groups Projects
Commit b30b448b authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

removed pass by reference

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1358 44740490-163a-0410-bde0-09ae8108e29a
parent 11d1ae37
No related branches found
No related tags found
No related merge requests found
......@@ -185,8 +185,9 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
$tester->tick('getTestOrg');
// Get organization and organizationUnit data.
$this->getOrg(&$attributes, $this->location->getValue('testUser'));
$this->getOrgUnits(&$attributes, $this->location->getValue('testUser'));
$this->getOrg($attributes, $this->location->getValue('testUser'));
$this->getOrgUnits($attributes, $this->location->getValue('testUser'));
#echo('<pre>'); print_r($attributes); exit;
$result['getTestOrg'] = array(TRUE,$tester->tack('getTestOrg'));
} catch(Exception $e) {
$tester->log('LDAP Test user attributes failed:' . $e->getMessage());
......
......@@ -88,7 +88,7 @@ class sspmod_ldapstatus_Tester {
$this->log('ldapstatus phpping(): ping [' . $host . ':' . $port . ']' );
$timeout = 1.0;
$socket = @fsockopen($host, $port, &$errno, $errstr, $timeout);
$socket = @fsockopen($host, $port, $errno, $errstr, $timeout);
if ($socket) @fclose($socket);
if ($errno) {
return array(FALSE, $errno . ':' . $errstr . ' [' . $host . ':' . $port . ']');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment