|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<!-- EN-Revision: 3c36a56c9e6875fbe3295827a15747d6eae9572e Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara --> |
| 3 | +<refentry xml:id="function.opcache-jit-blacklist" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 | + <refnamediv> |
| 5 | + <refname>opcache_jit_blacklist</refname> |
| 6 | + <refpurpose>Impede que uma função seja compilada pelo JIT</refpurpose> |
| 7 | + </refnamediv> |
| 8 | + |
| 9 | + <refsect1 role="description"> |
| 10 | + &reftitle.description; |
| 11 | + <methodsynopsis> |
| 12 | + <type>void</type> |
| 13 | + <methodname>opcache_jit_blacklist</methodname> |
| 14 | + <methodparam> |
| 15 | + <type>Closure</type> |
| 16 | + <parameter>closure</parameter> |
| 17 | + </methodparam> |
| 18 | + </methodsynopsis> |
| 19 | + <simpara> |
| 20 | + Esta função impede que uma função em particular seja compilada pelo JIT quando o rastreamento JIT estiver em uso. |
| 21 | + Esta função é especificada usando um <classname>Closure</classname>. |
| 22 | + </simpara> |
| 23 | + <warning> |
| 24 | + <simpara> |
| 25 | + Qualquer parte da função que já tenha sido compilada pelo JIT permacece não afetada |
| 26 | + e ainda será compilada pelo JIT. |
| 27 | + </simpara> |
| 28 | + </warning> |
| 29 | + </refsect1> |
| 30 | + |
| 31 | + <refsect1 role="parameters"> |
| 32 | + &reftitle.parameters; |
| 33 | + <variablelist> |
| 34 | + <varlistentry> |
| 35 | + <term> |
| 36 | + <parameter>closure</parameter> |
| 37 | + </term> |
| 38 | + <listitem> |
| 39 | + <simpara> |
| 40 | + A função a ser impedida, representada como um chamável de primeira classe. |
| 41 | + Também é possível passar uma função anônima, |
| 42 | + e nesse cado a própria função anônima é impedida. |
| 43 | + </simpara> |
| 44 | + </listitem> |
| 45 | + </varlistentry> |
| 46 | + </variablelist> |
| 47 | + </refsect1> |
| 48 | + |
| 49 | + <refsect1 role="returnvalues"> |
| 50 | + &reftitle.returnvalues; |
| 51 | + <simpara> |
| 52 | + &return.void; |
| 53 | + </simpara> |
| 54 | + </refsect1> |
| 55 | + |
| 56 | + <refsect1 role="examples"> |
| 57 | + &reftitle.examples; |
| 58 | + <example> |
| 59 | + <title> |
| 60 | + Exemplo básico de |
| 61 | + <function>opcache_jit_blacklist</function> |
| 62 | + </title> |
| 63 | + <programlisting role="php"> |
| 64 | +<![CDATA[ |
| 65 | +<?php |
| 66 | +function foo() { |
| 67 | + $x = 1; |
| 68 | + $x += 0; |
| 69 | + ++$x; |
| 70 | + var_dump($x); |
| 71 | +} |
| 72 | +opcache_jit_blacklist(foo(...)); |
| 73 | +foo(); |
| 74 | +?> |
| 75 | +]]> |
| 76 | + </programlisting> |
| 77 | + </example> |
| 78 | + </refsect1> |
| 79 | + |
| 80 | + <refsect1 role="seealso"> |
| 81 | + &reftitle.seealso; |
| 82 | + <simplelist> |
| 83 | + <member><function>opcache_invalidate</function></member> |
| 84 | + <member><function>opcache_reset</function></member> |
| 85 | + </simplelist> |
| 86 | + </refsect1> |
| 87 | +</refentry> |
| 88 | + <!-- Keep this comment at the end of the file |
| 89 | + Local variables: |
| 90 | + mode: sgml |
| 91 | + sgml-omittag:t |
| 92 | + sgml-shorttag:t |
| 93 | + sgml-minimize-attributes:nil |
| 94 | + sgml-always-quote-attributes:t |
| 95 | + sgml-indent-step:1 |
| 96 | + sgml-indent-data:t |
| 97 | + indent-tabs-mode:nil |
| 98 | + sgml-parent-document:nil |
| 99 | + sgml-default-dtd-file:"~/.phpdoc/manual.ced" |
| 100 | + sgml-exposed-tags:nil |
| 101 | + sgml-local-catalogs:nil |
| 102 | + sgml-local-ecat-files:nil |
| 103 | + End: |
| 104 | + vim600: syn=xml fen fdm=syntax fdl=2 si |
| 105 | + vim: et tw=78 syn=sgml |
| 106 | + vi: ts=1 sw=1 |
| 107 | + --> |
0 commit comments