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

12

/PHP_TRUNK/ext/spl/examples/
H A Dkeyfilter.inc18 * are strings. In other words you can put an iterator into the constructor
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/interbase/
H A Dphp_ibase_udf.c128 static void __attribute__((constructor)) init()
/PHP_TRUNK/ext/pdo/
H A Dpdo_stmt.c742 if (ce->constructor) {
751 zend_fcall_info_args_ex(fci, ce->constructor, &stmt->fetch.cls.ctor_args TSRMLS_CC);
754 fcc->function_handler = ce->constructor;
759 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);
811 /* Added to free constructor arguments ??? */
956 if (ce->constructor && (flags & PDO_FETCH_PROPS_LATE)) {
960 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call class constructor" TSRMLS_CC);
1151 if (ce->constructor && !(flags & (PDO_FETCH_PROPS_LATE | PDO_FETCH_SERIALIZE))) {
1155 pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "could not call class constructor" TSRMLS_CC);
H A Dpdo_dbh.c412 pdo_raise_impl_error(dbh, NULL, "HY000", "constructor arguments must be passed as an array" TSRMLS_CC);
415 if (!dbstmt_ce->constructor) {
416 pdo_raise_impl_error(dbh, NULL, "HY000", "user-supplied statement does not accept constructor arguments" TSRMLS_CC);
439 if (dbstmt_ce->constructor) {
457 fcc.function_handler = dbstmt_ce->constructor;
516 if (dbstmt_ce->constructor && !(dbstmt_ce->constructor->common.fn_flags & (ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED))) {
518 "user-supplied statement class cannot have a public constructor" TSRMLS_CC);
783 if (pce->constructor && !(pce->constructor
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_engine.h35 zend_function *func = pce->constructor;
46 zend_function *func = pce->constructor;
H A Dspl_directory.c443 if (ce->constructor->common.scope != spl_ce_SplFileInfo) {
445 zend_call_method_with_1_params(return_value, ce, &ce->constructor, "__construct", NULL, &arg1);
486 if (ce->constructor->common.scope != spl_ce_SplFileInfo) {
488 zend_call_method_with_1_params(return_value, ce, &ce->constructor, "__construct", NULL, &arg1);
508 if (ce->constructor->common.scope != spl_ce_SplFileObject) {
511 zend_call_method_with_2_params(return_value, ce, &ce->constructor, "__construct", NULL, &arg1, &arg2);
1100 the constructor fails. Here we use this to ensure the object
1103 When the constructor gets called the object is already created
1405 "The parent constructor was not called: the object is in an "
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c1103 zend_call_method_with_1_params(&ref, pce, &pce->constructor, "__construct", NULL, &arg);
1339 * because the executor's constructor does not set initialize it.
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c639 if (ce->constructor) {
640 ce->constructor = zend_shared_alloc_get_xlat_entry(ce->constructor);
642 ce->constructor->op_array.refcount++;
/PHP_TRUNK/Zend/
H A Dzend_object_handlers.c1212 if (function_name->len == ce->name->len && ce->constructor) {
1214 /* Only change the method to the constructor if the constructor isn't called __construct
1217 if (!memcmp(lc_class_name, lc_function_name->val, function_name->len) && memcmp(ce->constructor->common.function_name->val, "__", sizeof("__") - 1)) {
1218 fbc = ce->constructor;
1344 zend_function *constructor = zobj->ce->constructor; local
1346 if (constructor) {
1347 if (constructor->op_array.fn_flags & ZEND_ACC_PUBLIC) {
1349 } else if (constructor
[all...]
H A Dzend_compile.c992 if (ce->constructor) {
993 if (ce->parent->constructor && ce->parent->constructor->common.fn_flags & ZEND_ACC_FINAL) {
995 ce->parent->name->val, ce->parent->constructor->common.function_name->val,
996 ce->name->val, ce->constructor->common.function_name->val
1003 /* inherit parent's constructor */
1014 /* Don't inherit the old style constructor if we already have the new style constructor */
1026 /* inherit parent's constructor */
1037 ce->constructor
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli.c1038 constructor for statement object.
1098 constructor for result object.
1300 if (ce->constructor) {
1325 fcc.function_handler = ce->constructor;
1331 zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not execute %s::%s()", ce->name->val, ce->constructor->common.function_name->val);
1339 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->val);
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c1382 fcc.function_handler = ce_ptr->constructor;
3162 Returns whether this method is the constructor */
3175 RETURN_BOOL(mptr->common.fn_flags & ZEND_ACC_CTOR && intern->ce->constructor && intern->ce->constructor->common.scope == mptr->common.scope);
3612 Returns the class' constructor if there is one, NULL otherwise */
3623 if (ce->constructor) {
3624 reflection_method_factory(ce, ce->constructor, NULL, return_value TSRMLS_CC);
4053 /* Basically, the class is instantiable. Though, if there is a constructor
4055 if (!ce->constructor) {
4059 RETURN_BOOL(ce->constructor
4168 zend_function *constructor; local
4261 zend_function *constructor; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dsoap.c805 SoapParam constructor */
829 SoapHeader constructor */
871 SoapFault constructor */
927 SoapFault constructor */
970 SoapVar constructor */
1117 SoapServer constructor */
1685 /* Call constructor */
1687 zval c_ret, constructor; local
1689 ZVAL_STRING(&constructor, ZEND_CONSTRUCTOR_FUNC_NAME);
1690 if (call_user_function(NULL, &tmp_soap, &constructor,
1714 zval c_ret, constructor; local
[all...]
/PHP_TRUNK/main/streams/
H A Duserspace.c296 if (uwrap->ce->constructor) {
312 fcc.function_handler = uwrap->ce->constructor;
318 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not execute %s::%s()", uwrap->ce->name->val, uwrap->ce->constructor->common.function_name->val);
/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c2184 if (ce->constructor) {
2209 fcc.function_handler = ce->constructor;
2215 zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not execute %s::%s()", ce->name->val, ce->constructor->common.function_name->val);
2225 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->val);
/PHP_TRUNK/ext/phar/
H A Dphar_object.c1105 * This function is used as the constructor for both the Phar and PharData
1137 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot call constructor twice");
1224 &spl_ce_RecursiveDirectoryIterator->constructor, "__construct", NULL, &arg1, &arg2);
1748 &spl_ce_RecursiveDirectoryIterator->constructor, "__construct", NULL, &arg, &arg2);
1764 &spl_ce_RecursiveIteratorIterator->constructor, "__construct", NULL, &iter);
1787 &spl_ce_RegexIterator->constructor, "__construct", NULL, &iteriter, &arg2);
2180 zend_call_method_with_1_params(&ret, ce, &ce->constructor, "__construct", NULL, &arg1);
4349 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot call constructor twice");
4389 &spl_ce_SplFileInfo->constructor, "__construct", NULL, &arg1);

Completed in 58 milliseconds

12