2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
17 #ifndef incl_HPHP_STRINGS_H_
18 #define incl_HPHP_STRINGS_H_
23 const char* const FATAL_NULL_THIS
= "$this is null";
24 const char* const WARN_NULL_THIS
= "Undefined variable: this";
25 const char* const FUNCTION_ALREADY_DEFINED
= "Function already defined: %s";
26 const char* const CONSTANT_ALREADY_DEFINED
= "Constant %s already defined";
27 const char* const CONSTANTS_MUST_BE_SCALAR
=
28 "Constants may only evaluate to scalar values";
29 const char* const CONSTANTS_CASE_SENSITIVE
=
30 "Case insensitive constant names are not supported in HipHop";
31 const char* const DIVISION_BY_ZERO
=
33 const char* const UNDEFINED_CONSTANT
=
34 "Use of undefined constant %s - assumed '%s'";
35 const char* const UNDEFINED_VARIABLE
= "Undefined variable: %s";
36 const char* const UNKNOWN_CLASS
= "Class undefined: %s";
37 const char* const CANT_ACCESS_SELF
=
38 "Cannot access self:: when no class scope is active";
39 const char* const CANT_ACCESS_PARENT_WHEN_NO_CLASS
=
40 "Cannot access parent:: when no class scope is active";
41 const char* const CANT_ACCESS_PARENT_WHEN_NO_PARENT
=
42 "Cannot access parent:: when current class scope has no parent";
43 const char* const CANT_ACCESS_STATIC
=
44 "Cannot access static:: when no class scope is active";
45 const char* const UNDEFINED_INDEX
=
46 "Undefined index: %s";
47 const char* const CANNOT_USE_SCALAR_AS_ARRAY
=
48 "Cannot use a scalar value as an array";
49 const char* const CREATING_DEFAULT_OBJECT
=
50 "Creating default object from empty value";
51 const char* const FUNCTION_NAME_MUST_BE_STRING
=
52 "Function name must be a string";
53 const char* const METHOD_NAME_MUST_BE_STRING
=
54 "Method name must be a string";
55 const char* const MISSING_ARGUMENT
=
56 "%s() expects exactly 1 parameter, %d given";
57 const char* const MISSING_ARGUMENTS
=
58 "%s() expects exactly %d parameters, %d given";
59 const char* const CANT_UNSET_STRING
=
60 "Cannot unset string offsets";
61 const char* const OP_NOT_SUPPORTED_STRING
=
62 "Operator not supported for strings";
63 const char* const ASYNC_WITHOUT_BODY
=
64 "Cannot declare %s method %s::%s() async; async is only meaningful"
65 " when it modifies a method body";
66 const char* const PICK_ACCESS_MODIFIER
=
67 "Cannot declare more than one access modifier";
68 const char* const TRAITS_UNKNOWN_TRAIT
=
70 const char* const TRAITS_UNKNOWN_TRAIT_METHOD
=
71 "Unknown trait method '%s'";
72 const char* const METHOD_IN_MULTIPLE_TRAITS
=
73 "Method '%s' declared in multiple traits";
74 const char* const TRAIT_REQ_EXTENDS
=
75 "Class '%s' required to extend class '%s'"
76 " by trait '%s' (via %s)";
77 const char* const TRAIT_REQ_IMPLEMENTS
=
78 "Class '%s' required to implement interface '%s'"
79 " by trait '%s' (via %s)";
80 const char* const TRAIT_BAD_REQ_EXTENDS
=
81 "Trait '%s' requires extension of '%s', but %s "
82 "is not an extendable class";
83 const char* const TRAIT_BAD_REQ_IMPLEMENTS
=
84 "Trait '%s' requires implementations of '%s', but %s "
85 "is not an interface";
87 } // namespace Strings
90 #endif // incl_HPHP_STRINGS_H_