Searched refs:constructor (Results 1 - 25 of 31) sorted by relevance

12

/PHP_5_4/ext/spl/examples/
H A Dkeyfilter.inc18 * are strings. In other words you can put an iterator into the constructor
/PHP_5_4/ext/spl/internal/
H A Dfilteriterator.inc19 * you can put an iterator into the constructor and the instance will only
H A Dlimititerator.inc53 * specified in constructor).
73 /** Rewind to offset specified in constructor
109 * constructor).
H A Drecursivecachingiterator.inc83 * constructor this fucntion returns false so that getChildren does
H A Drecursiveiteratoriterator.inc60 /** Rewind to top iterator as set in constructor
H A Dspldoublylinkedlist.inc143 /** Rewind to top iterator as set in constructor
H A Dcachingiterator.inc129 * @throw exception when CALL_TOSTRING was not specified in constructor
H A Diteratoriterator.inc63 /** \return the inner iterator as passed to the constructor
H A Dsplobjectstorage.inc28 /** Rewind to top iterator as set in constructor
/PHP_5_4/scripts/dev/generate-phpt/src/
H A DgtMethod.php29 * Set the names of the class constructor arguments. Take only mandatory argument names.
34 $constructor = $reflectionClass->getConstructor(); variable
35 foreach($constructor->getParameters() as $i => $param) {
64 * Return the list of constructor argument names
92 * Set the list of arguments to be passed to the constructor
107 * Return the list of the arguments to be passed to the constructor
117 * Set up the source statements that initialise constructor arguments;
131 * Return the constructor initialisation statements
/PHP_5_4/ext/pdo/
H A Dpdo_stmt.c755 if (ce->constructor) {
778 fcc->function_handler = ce->constructor;
783 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "user-supplied class does not have a constructor, use NULL for the ctor_params parameter, or simply omit it" TSRMLS_CC);
977 if (ce->constructor && (flags & PDO_FETCH_PROPS_LATE)) {
981 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call class constructor" TSRMLS_CC);
1177 if (ce->constructor && !(flags & (PDO_FETCH_PROPS_LATE | PDO_FETCH_SERIALIZE))) {
1181 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call class constructor" TSRMLS_CC);
H A Dpdo_dbh.c432 pdo_raise_impl_error(dbh, NULL, "HY000", "constructor arguments must be passed as an array" TSRMLS_CC);
435 if (!dbstmt_ce->constructor) {
436 pdo_raise_impl_error(dbh, NULL, "HY000", "user-supplied statement does not accept constructor arguments" TSRMLS_CC);
460 if (dbstmt_ce->constructor) {
489 fcc.function_handler = dbstmt_ce->constructor;
547 if (dbstmt_ce->constructor && !(dbstmt_ce->constructor->common.fn_flags & (ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED))) {
549 "user-supplied statement class cannot have a public constructor" TSRMLS_CC);
815 if ((*pce)->constructor && !((*pce)->constructor
[all...]
/PHP_5_4/ext/reflection/
H A Dphp_reflection.c1405 fcc.function_handler = ce_ptr->constructor;
3157 Returns whether this method is the constructor */
3170 RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_CTOR && intern->ce->constructor && intern->ce->constructor->common.scope == mptr->common.scope);
3626 Returns the class' constructor if there is one, NULL otherwise */
3637 if (ce->constructor) {
3638 reflection_method_factory(ce, ce->constructor, NULL, return_value TSRMLS_CC);
4071 /* Basically, the class is instantiable. Though, if there is a constructor
4073 if (!ce->constructor) {
4077 RETURN_BOOL(ce->constructor
[all...]
/PHP_5_4/ext/spl/
H A Dspl_engine.h37 zend_call_method(retval, pce, &pce->constructor, pce->constructor->common.function_name, strlen(pce->constructor->common.function_name), NULL, 1, arg1, NULL TSRMLS_CC);
47 zend_call_method(retval, pce, &pce->constructor, pce->constructor->common.function_name, strlen(pce->constructor->common.function_name), NULL, 2, arg1, arg2 TSRMLS_CC);
H A Dspl_directory.c451 if (ce->constructor->common.scope != spl_ce_SplFileInfo) {
454 zend_call_method_with_1_params(&return_value, ce, &ce->constructor, "__construct", NULL, arg1);
495 if (ce->constructor->common.scope != spl_ce_SplFileInfo) {
498 zend_call_method_with_1_params(&return_value, ce, &ce->constructor, "__construct", NULL, arg1);
517 if (ce->constructor->common.scope != spl_ce_SplFileObject) {
522 zend_call_method_with_2_params(&return_value, ce, &ce->constructor, "__construct", NULL, arg1, arg2);
1119 the constructor fails. Here we use this to ensure the object
1122 When the constructor gets called the object is already created
1424 "The parent constructor was not called: the object is in an "
/PHP_5_4/main/streams/
H A Duserspace.c300 if (uwrap->ce->constructor) {
316 fcc.function_handler = uwrap->ce->constructor;
322 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not execute %s::%s()", uwrap->ce->name, uwrap->ce->constructor->common.function_name);
/PHP_5_4/sapi/cli/
H A Dphp_cli.c1123 EX(function_state).function = pce->constructor;
1124 zend_call_method_with_1_params(&ref, pce, &pce->constructor, "__construct", NULL, arg);
1348 * because the executor's constructor does not set initialize it.
/PHP_5_4/ext/mysql/
H A Dphp_mysql.c2165 if (ce->constructor) {
2201 fcc.function_handler = ce->constructor;
2207 zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not execute %s::%s()", ce->name, ce->constructor->common.function_name);
2217 zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Class %s does not have a constructor hence you cannot use ctor_params", ce->name);
/PHP_5_4/Zend/
H A Dzend_object_handlers.c1164 if (function_name_strlen == ce->name_length && ce->constructor) {
1166 /* Only change the method to the constructor if the constructor isn't called __construct
1169 if (!memcmp(lc_class_name, lc_function_name, function_name_strlen) && memcmp(ce->constructor->common.function_name, "__", sizeof("__") - 1)) {
1170 fbc = ce->constructor;
1303 zend_function *constructor = zobj->ce->constructor; local
1305 if (constructor) {
1306 if (constructor->op_array.fn_flags & ZEND_ACC_PUBLIC) {
1308 } else if (constructor
[all...]
H A Dzend_vm_def.h2303 if (UNEXPECTED(ce->constructor == NULL)) {
2304 zend_error_noreturn(E_ERROR, "Cannot call constructor");
2306 if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
2309 EX(fbc) = ce->constructor;
3353 zend_function *constructor; variable
3369 constructor = Z_OBJ_HT_P(object_zval)->get_constructor(object_zval TSRMLS_CC);
3371 if (constructor == NULL) {
3388 EX(fbc) = constructor;
H A Dzend_compile.c1631 if (!CG(active_class_entry)->constructor) {
1632 CG(active_class_entry)->constructor = (zend_function *) CG(active_op_array);
1635 if (CG(active_class_entry)->constructor) {
1636 zend_error(E_STRICT, "Redefining already defined constructor for class %s", CG(active_class_entry)->name);
1638 CG(active_class_entry)->constructor = (zend_function *) CG(active_op_array);
2857 if (ce->constructor) {
2858 if (ce->parent->constructor && ce->parent->constructor->common.fn_flags & ZEND_ACC_FINAL) {
2860 ce->parent->name, ce->parent->constructor->common.function_name,
2861 ce->name, ce->constructor
[all...]
/PHP_5_4/ext/mysqli/
H A Dmysqli.c1014 constructor for statement object.
1075 constructor for result object.
1276 if (ce->constructor) {
1312 fcc.function_handler = ce->constructor;
1318 zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not execute %s::%s()", ce->name, ce->constructor->common.function_name);
1328 zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Class %s does not have a constructor hence you cannot use ctor_params", ce->name);
/PHP_5_4/ext/interbase/
H A Dphp_ibase_udf.c128 static void __attribute__((constructor)) init()
/PHP_5_4/ext/soap/
H A Dsoap.c778 SoapParam constructor */
800 SoapHeader constructor */
840 SoapFault constructor */
895 SoapFault constructor */
938 SoapVar constructor */
1098 SoapServer constructor */
1684 /* Call constructor */
1686 zval c_ret, constructor; local
1689 INIT_ZVAL(constructor);
1691 ZVAL_STRING(&constructor, ZEND_CONSTRUCTOR_FUNC_NAM
1714 zval c_ret, constructor; local
[all...]
/PHP_5_4/ext/phar/
H A Dphar_object.c1149 * This function is used as the constructor for both the Phar and PharData
1184 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot call constructor twice");
1273 &spl_ce_RecursiveDirectoryIterator->constructor, "__construct", NULL, &arg1, &arg2);
1849 &spl_ce_RecursiveDirectoryIterator->constructor, "__construct", NULL, &arg, &arg2);
1866 &spl_ce_RecursiveIteratorIterator->constructor, "__construct", NULL, iter);
1891 &spl_ce_RegexIterator->constructor, "__construct", NULL, iteriter, &arg2);
2283 zend_call_method_with_1_params(&ret, ce, &ce->constructor, "__construct", NULL, &arg1);
4507 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot call constructor twice");
4548 &spl_ce_SplFileInfo->constructor, "__construct", NULL, &arg1);

Completed in 149 milliseconds

12