Errors considered to be the fault of the PHP code will result in the
function returning false and E_WARNING
being raised, for example, a resource type being used as an
argument. Lua errors will result in a LuaSandboxRuntimeError
exception being thrown.
Lua functions are PHP LuaSandboxFunction objects, and vice versa.
General PHP callables are not supported.
PHP arrays are converted to Lua tables, and vice versa.
Note that Lua typically indexes arrays from 1, while PHP indexes
arrays from 0. No adjustment is made for these differing
conventions.
Self-referential arrays are not supported in either direction.
PHP references are dereferenced.
Lua __pairs and __ipairs are processed.
__index is ignored.
When converting from PHP to Lua, integer keys between
-2**53 and 2**53 are represented
as Lua numbers. All other keys are represented as Lua strings.
When converting from Lua to PHP, keys other than strings and
numbers will result in an error, as will collisions when converting
numbers to strings or vice versa (since PHP considers things like
$a[0] and $a["0"] as being equivalent).
All other types are unsupported and will raise an error/exception,
including general PHP objects and Lua userdata and thread types.
Lua functions inherently return a list of results. So on success, this
method returns an array containing all of the values returned by Lua,
with int keys starting from zero. Lua may return no results, in
which case an empty array is returned.
Si vous préférez continuer sur le site en français, cliquez sur "Annuler". Si vous annulez, ce message n'apparaîtra plus durant la session.
You are on the French version of the site, but your system indicates that you prefer to use the English language. The entire site is not translated yet, but the menus and buttons on the interface are largely translated.
U bevindt zich op de Franse versie van de site, maar uw systeem geeft aan dat u liever de Nederlandse taal gebruikt. De hele site is nog niet vertaald, maar de menu's en knoppen op de interface zijn grotendeels vertaald.
Sie befinden sich in der französischen Version der Website, Ihr System gibt jedoch an, dass Sie die deutsche Sprache bevorzugen. Die gesamte Site ist noch nicht übersetzt, aber die Menüs und Schaltflächen auf der Benutzeroberfläche sind weitgehend übersetzt.
01/02/2025 12:50:41 Cette version de la page est en cache (à la date du 01/02/2025 12:50:41) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.
Document créé le 30/01/2003, dernière modification le 26/10/2018 Source du document imprimé : https://www.gaudry.be/php-rf-luasandboxfunction.call.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page. L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.