PHP 4

[ PHP ]

(!!! Teleportom!!!)
: fopen, msql_num_fields, socket_write ...


36.

PHP ; . Return- return_value, . return_value zval- (. ), . , MAKE_STD_ZVAL. .

zval-, ( ). , 9.14 9.15.

36-1. 9.14.
:    9.14     .

RETURN_RESOURCE(resource) .
RETURN_BOOL(bool) Boolean.
RETURN_NULL() ( NULL).
RETURN_LONG(long) long.
RETURN_DOUBLE(double) double.
RETURN_STRING(string,duplicate) . duplicate , estrdup().
RETURN_STRINGL(string, length, duplicate) ; RETURN_STRING. , , .
RETURN_EMPTY_STRING() .
RETURN_FALSE Boolean false.
RETURN_TRUE Boolean true.
36-2. 9.15.
Return-
:    9.15   return-;
      .

RETVAL_RESOURCE(resource) return- .
RETVAL_BOOL(bool) return- Boolean.
RETVAL_NULL return- NULL.
RETVAL_LONG(long) return- long.
RETVAL_DOUBLE(double) return- double.
RETVAL_STRING(string, duplicate) return- Zend, (. RETURN_STRING).
RETVAL_STRINGL(string, length, duplicate) return- length (. RETVAL_STRING). , .
RETVAL_EMPTY_STRING return- - .
RETVAL_FALSE return- - Boolean false.
RETVAL_TRUE return- - Boolean true.

, , array_init() object_init(), - return_value. , .


: Copy
php

: 3119 .

: - |  -