* PHP-7.3:
Add missing skip keyword in tests
--- /dev/null
- if (!extension_loaded('ldap')) die('ldap extension not available');
+--TEST--
+ldap_read() does not modify $attributes array
+--SKIPIF--
+<?php
++if (!extension_loaded('ldap')) die('skip ldap extension not available');
+?>
+--FILE--
+<?php
+$array = [123, 456, 789];
+@ldap_read(null, null, null, $array);
+var_dump($array);
+?>
+--EXPECT--
+array(3) {
+ [0]=>
+ int(123)
+ [1]=>
+ int(456)
+ [2]=>
+ int(789)
+}
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
- if (!function_exists('snmp_set_enum_print')) die('This function is only available if using NET_SNMP');
+ if (!function_exists('snmp_set_enum_print')) die('skip This function is only available if using NET_SNMP');
?>
--FILE--
<?php
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
- if (!function_exists('snmp_set_oid_output_format')) die('This function is only available if using NET_SNMP');
+ if (!function_exists('snmp_set_oid_output_format')) die('skip This function is only available if using NET_SNMP');
?>
--FILE--
<?php
skip_if_not_win();
- if (strlen(__DIR__) > 259) die("Unsuitable starting path length");
-if (strlen(dirname(__FILE__)) > 259) die("skip Unsuitable starting path length");
++if (strlen(__DIR__) > 259) die("skip Unsuitable starting path length");
?>
--FILE--
<?php