Arquivos
hhvm/hphp/runtime/base/strings.h
T
Kyle Delong a8e3321fbd HPHP/XHP: 'mixed' type in attribute declarations
We'd like to start using ##mixed## instead of ##var## for attribute types to be consistent with Hack. As a followup to this (once released), we would codemod all ##var## to ##mixed##.
2013-07-18 17:28:37 -07:00

69 linhas
3.1 KiB
C++

/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
| Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#ifndef incl_HPHP_STRINGS_H_
#define incl_HPHP_STRINGS_H_
namespace HPHP {
namespace Strings {
const char* const FATAL_NULL_THIS = "$this is null";
const char* const WARN_NULL_THIS = "Undefined variable: this";
const char* const FUNCTION_ALREADY_DEFINED = "Function already defined: %s";
const char* const CONSTANT_ALREADY_DEFINED = "Constant %s already defined";
const char* const CONSTANTS_MUST_BE_SCALAR =
"Constants may only evaluate to scalar values";
const char* const CONSTANTS_CASE_SENSITIVE =
"Case insensitive constant names are not supported in HipHop";
const char* const DIVISION_BY_ZERO =
"Division by zero";
const char* const UNDEFINED_CONSTANT =
"Use of undefined constant %s - assumed '%s'";
const char* const UNDEFINED_VARIABLE = "Undefined variable: %s";
const char* const UNKNOWN_CLASS = "Class undefined: %s";
const char* const CANT_ACCESS_SELF =
"Cannot access self:: when no class scope is active";
const char* const CANT_ACCESS_PARENT_WHEN_NO_CLASS =
"Cannot access parent:: when no class scope is active";
const char* const CANT_ACCESS_PARENT_WHEN_NO_PARENT =
"Cannot access parent:: when current class scope has no parent";
const char* const CANT_ACCESS_STATIC =
"Cannot access static:: when no class scope is active";
const char* const UNDEFINED_INDEX =
"Undefined index: %s";
const char* const CANNOT_USE_SCALAR_AS_ARRAY =
"Cannot use a scalar value as an array";
const char* const CREATING_DEFAULT_OBJECT =
"Creating default object from empty value";
const char* const FUNCTION_NAME_MUST_BE_STRING =
"Function name must be a string";
const char* const METHOD_NAME_MUST_BE_STRING =
"Method name must be a string";
const char* const MISSING_ARGUMENT =
"%s() expects exactly 1 parameter, %d given";
const char* const MISSING_ARGUMENTS =
"%s() expects exactly %d parameters, %d given";
const char* const CANT_UNSET_STRING =
"Cannot unset string offsets";
const char* const OP_NOT_SUPPORTED_STRING =
"Operator not supported for strings";
} // namespace Strings
} // namespace HPHP
#endif // incl_HPHP_STRINGS_H_