Пример #1
0
        /**
         * Prints a debug version of the variable
         *
         * @param env the quercus calling environment
         * @param v the variable to print
         * @return the escaped stringPhp
         */
        public static Value debug_zval_dump(Env env, @ReadOnly Value v)
        {
            try {
                debug_impl(env, v, 0);

                return(NullValue.NULL);
            } catch (IOException e) {
                throw new QuercusModuleException(e);
            }
        }
Пример #2
0
 /**
  * Converts to a long
  *
  * @param v the variable to convert
  * @return the double value
  */
 public static long intval(@ReadOnly Value v, int base)
Пример #3
0
 /**
  * Returns the type string for the variable
  */
 public static string gettype(@ReadOnly Value v)
 {
     return(v.getType());
 }
Пример #4
0
 /**
  * Converts to a long
  *
  * @param v the variable to convert
  * @return the double value
  */
 public static Value intval(@ReadOnly Value v)
 {
     return(v.toLongValue());
 }
Пример #5
0
 /**
  * Converts to a double
  *
  * @param v the variable to convert
  * @return the double value
  */
 public static Value floatval(@ReadOnly Value v)
 {
     return(new DoubleValue(v.toDouble()));
 }
Пример #6
0
 /**
  * Returns true for an empty variable.
  *
  * @param v the value to test
  *
  * @return true if the value @is empty
  */
 public static bool empty(@ReadOnly Value v)
 {
     return(v.isEmpty());
 }
Пример #7
0
 /**
  * Converts to a double
  *
  * @param v the variable to convert
  * @return the double value
  */
 public static Value doubleval(@ReadOnly Value v)
 {
     return(floatval(v));
 }
 public static Value filter_var(Env env,
                                @ReadOnly Value value,
Пример #9
0
 public static Value q_assert(Env env,
                              @ReadOnly Value value,