3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $baseDN = "dc=challenge01,dc=root-me,dc=org"; $ldapServer = "challenge01.root-me.org"; $ldapServerPort = 54013; $rdn="admin"; $mdp="%00"; $dn = 'dc=challenge01,dc=root-me,dc=org'; echo "Connexion au serveur"; $conn=ldap_connect($ldapServer); // on teste : le serveur LDAP est-il trouvé ? if ($conn) echo "Le résultat de connexion est ".$conn ."<br />"; else die("connexion impossible au serveur LDAP"); ?>
based on 93Bvk
Output for 7.0.0 - 7.2.0
Connexion au serveur Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /in/eJsj7:10 Stack trace: #0 {main} thrown in /in/eJsj7 on line 10
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Connexion au serveur Fatal error: Call to undefined function ldap_connect() in /in/eJsj7 on line 10
Process exited with code 255.