|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesUse_Tabs_And_Spaces (last revision 2012-11-03 09:21 UTC by anotherhero at gmail dot com)ThrowExceptions (last revision 2012-11-03 09:00 UTC by anotherhero at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-04 03:56 UTC] laruence@php.net
[2012-11-04 03:58 UTC] laruence@php.net
[2012-11-04 03:58 UTC] laruence@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: laruence
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Description: ------------ For the sake of consistency and for the same reason that was noted in the source, let me quote it: "as johannes suggesting use exceptioni to distinguish the error from a lua function return false" Test script: --------------- $l = new Lua(); try { $l->eval("invalid code"); } catch (LuaException $e) { echo $e->getMessage(); } Expected result: ---------------- lua error: [string "line"]:1: '=' expected near 'code' Actual result: -------------- A warning is generated instead of a thrown exception