reference/event/eventbase/getfeatures.xml
23ea6be076881a34e1d454e9680968ece085f7f6
23ea6be076881a34e1d454e9680968ece085f7f6
...
...
@@ -25,8 +25,7 @@
25
25
&reftitle.returnvalues;
26
26
<para>
27
27
Returns integer representing a bitmask of supported features. See
28
-
<link linkend="eventconfig.constants">EventConfig::FEATURE_* constants</link>
29
-
.
28
+
<link linkend="eventconfig.constants">EventConfig::FEATURE_* constants</link>.
30
29
</para>
31
30
</refsect1>
32
31
<refsect1 role="examples">
...
...
@@ -40,16 +39,16 @@
40
39
// Avoiding "select" method
41
40
$cfg = new EventConfig();
42
41
if ($cfg->avoidMethod("select")) {
43
-
echo "`select' method avoided\n";
42
+
echo "'select' method avoided\n";
44
43
}
45
44
46
45
$base = new EventBase($cfg);
47
46
48
47
echo "Features:\n";
49
48
$features = $base->getFeatures();
50
-
($features & EventConfig::FEATURE_ET) and print("ET - edge-triggered IO\n");
51
-
($features & EventConfig::FEATURE_O1) and print("O1 - O(1) operation for adding/deletting events\n");
52
-
($features & EventConfig::FEATURE_FDS) and print("FDS - arbitrary file descriptor types, and not just sockets\n");
49
+
($features & EventConfig::FEATURE_ET) and print "ET - edge-triggered IO\n";
50
+
($features & EventConfig::FEATURE_O1) and print "O1 - O(1) operation for adding/deleting events\n";
51
+
($features & EventConfig::FEATURE_FDS) and print "FDS - arbitrary file descriptor types, and not just sockets\n";
53
52
?>
54
53
]]>
55
54
</programlisting>
56
55