reference/ffi/examples.xml
62126c55f1c6ed444043e7272c4f9e233818a44b
...
...
@@ -217,6 +217,7 @@ int(3)
217
217
It is possible to assign a PHP closure to a native variable of function pointer type
218
218
or to pass it as a function argument:
219
219
<example>
220
+
<title>Assigning a PHP <classname>Closure</classname> to a C function pointer</title>
220
221
<programlisting role="php">
221
222
<![CDATA[
222
223
<?php
...
...
@@ -264,7 +265,7 @@ Hello World 3!
264
265

265
266
<section xml:id="ffi.examples-complete">
266
267
<title>A Complete PHP/FFI/preloading Example</title>
267
-
<example>
268
+
<informalexample>
268
269
<simpara><filename>php.ini</filename></simpara>
269
270
<programlisting role="ini">
270
271
<![CDATA[
...
...
@@ -317,7 +318,7 @@ $d->printf("Hello %s!\n", "world");
317
318
?>
318
319
]]>
319
320
</programlisting>
320
-
</example>
321
+
</informalexample>
321
322
</section>
322
323
</chapter>
323
324

324
325