| /PHP_TRUNK/ext/bcmath/libbcmath/src/ |
| H A D | raisemod.c | 52 if (bc_is_zero(mod TSRMLS_CC)) return -1; 59 bc_init_num(&parity TSRMLS_CC); 69 bc_divide (exponent, BCG(_one_), &exponent, 0 TSRMLS_CC); /*truncate */ 78 while ( !bc_is_zero(exponent TSRMLS_CC) ) 80 (void) bc_divmod (exponent, BCG(_two_), &exponent, &parity, 0 TSRMLS_CC); 81 if ( !bc_is_zero(parity TSRMLS_CC) ) 83 bc_multiply (temp, power, &temp, rscale TSRMLS_CC); 84 (void) bc_modulo (temp, mod, &temp, scale TSRMLS_CC); 87 bc_multiply (power, power, &power, rscale TSRMLS_CC); 88 (void) bc_modulo (power, mod, &power, scale TSRMLS_CC); [all...] |
| /PHP_TRUNK/ext/intl/collator/ |
| H A D | collator_attr.c | 41 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", 45 "collator_get_attribute: unable to parse input params", 0 TSRMLS_CC ); 72 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oll", 76 "collator_set_attribute: unable to parse input params", 0 TSRMLS_CC ); 102 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 106 "collator_get_strength: unable to parse input params", 0 TSRMLS_CC ); 131 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", 135 "collator_set_strength: unable to parse input params", 0 TSRMLS_CC );
|
| H A D | collator_compare.c | 49 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oss", 53 "collator_compare: unable to parse input params", 0 TSRMLS_CC ); 62 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) TSRMLS_CC ); 64 "Object not initialized", 0 TSRMLS_CC ); local 65 php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Object not initialized"); 80 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) TSRMLS_CC ); 84 "Error converting first argument to UTF-16", 0 TSRMLS_CC ); local 96 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) TSRMLS_CC ); 100 "Error converting second argument to UTF-16", 0 TSRMLS_CC ); local
|
| H A D | collator_error.c | 36 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 40 "collator_get_error_code: unable to parse input params", 0 TSRMLS_CC ); 46 co = (Collator_object *) zend_object_store_get_object(object TSRMLS_CC); 67 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 71 "collator_get_error_message: unable to parse input params", 0 TSRMLS_CC ); 77 co = (Collator_object *) zend_object_store_get_object( object TSRMLS_CC ); 82 message = intl_error_get_message( COLLATOR_ERROR_P( co ) TSRMLS_CC );
|
| H A D | collator_locale.c | 42 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", 46 "collator_get_locale: unable to parse input params", 0 TSRMLS_CC ); 55 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) TSRMLS_CC ); 57 "Object not initialized", 0 TSRMLS_CC ); local 58 php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Object not initialized");
|
| /PHP_TRUNK/ext/intl/dateformat/ |
| H A D | dateformat.c | 38 #define DATEFORMATTER_EXPOSE_CLASS_CONST(x) zend_declare_class_constant_long( IntlDateFormatter_ce_ptr, ZEND_STRS( #x ) - 1, UDAT_##x TSRMLS_CC ); 39 #define DATEFORMATTER_EXPOSE_CUSTOM_CLASS_CONST(name, value) zend_declare_class_constant_long( IntlDateFormatter_ce_ptr, ZEND_STRS( name ) - 1, value TSRMLS_CC ); 41 #define DATEFORMATTER_EXPOSE_UCAL_CLASS_CONST(x) zend_declare_class_constant_long( IntlDateFormatter_ce_ptr, ZEND_STRS( #x ) - 1, UCAL_##x TSRMLS_CC ); 77 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 81 "datefmt_get_error_code: unable to parse input params", 0 TSRMLS_CC ); 85 dfo = (IntlDateFormatter_object *) zend_object_store_get_object( object TSRMLS_CC ); 103 if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 107 "datefmt_get_error_message: unable to parse input params", 0 TSRMLS_CC ); 112 dfo = (IntlDateFormatter_object *) zend_object_store_get_object( object TSRMLS_CC ); 115 message = intl_error_get_message( INTL_DATA_ERROR_P(dfo) TSRMLS_CC ); [all...] |
| H A D | dateformat_attrcpp.cpp | 49 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 52 "id: unable to parse input params", 0 TSRMLS_CC); 76 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", 79 "datefmt_get_timezone: unable to parse input params", 0 TSRMLS_CC ); 90 0 TSRMLS_CC); local 95 timezone_object_construct(tz_clone, return_value, 1 TSRMLS_CC); 100 php_error_docref0(NULL TSRMLS_CC, E_DEPRECATED, 119 if ( zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), 122 "unable to parse input params", 0 TSRMLS_CC); 129 INTL_DATA_ERROR_P(dfo), "datefmt_set_timezone" TSRMLS_CC); 192 "calendar", 0 TSRMLS_CC); local 239 0 TSRMLS_CC); local 249 0 TSRMLS_CC); local [all...] |
| H A D | dateformat_data.c | 31 intl_error_reset( &datef_data->error TSRMLS_CC ); 47 intl_error_reset( &datef_data->error TSRMLS_CC ); 58 dateformat_data_init( datef_data TSRMLS_CC );
|
| /PHP_TRUNK/ext/intl/formatter/ |
| H A D | formatter_data.c | 32 intl_error_reset( &nf_data->error TSRMLS_CC ); 48 intl_error_reset( &nf_data->error TSRMLS_CC ); 59 formatter_data_init( nf_data TSRMLS_CC );
|
| /PHP_TRUNK/ext/intl/ |
| H A D | intl_data.h | 38 intl_error_reset( NULL TSRMLS_CC ); 45 obj = (oclass##_object *) zend_object_store_get_object( object TSRMLS_CC ); \ 46 intl_error_reset( INTL_DATA_ERROR_P(obj) TSRMLS_CC ); \ 50 intl_error_set_code( NULL, (err) TSRMLS_CC ); \ 53 intl_error_set_custom_msg( NULL, msg, 0 TSRMLS_CC ); \ 59 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) TSRMLS_CC ); \ 62 intl_errors_set_custom_msg( INTL_DATA_ERROR_P((obj)), msg, 0 TSRMLS_CC ); \ 68 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) TSRMLS_CC ); \ 71 intl_errors_set_custom_msg( INTL_DATA_ERROR_P((obj)), msg, 0 TSRMLS_CC ); \ 93 "Locale string too long, should be no longer than 80 characters", 0 TSRMLS_CC ); \ [all...] |
| /PHP_TRUNK/ext/intl/timezone/ |
| H A D | timezone_methods.cpp | 44 0 TSRMLS_CC ); 51 intl_error_reset(NULL TSRMLS_CC); 53 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", 56 "intltz_create_time_zone: bad arguments", 0 TSRMLS_CC); 64 "intltz_create_time_zone: could not convert time zone id to UTF-16", 0 TSRMLS_CC); 70 timezone_object_construct(tz, return_value, 1 TSRMLS_CC); 78 intl_error_reset(NULL TSRMLS_CC); 80 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", 83 "intltz_from_date_time_zone: bad arguments", 0 TSRMLS_CC); 87 tzobj = (php_timezone_obj *)zend_objects_get_address(zv_timezone TSRMLS_CC); 128 timezone_object_construct(TimeZone::getGMT(), return_value, 0 TSRMLS_CC); local 142 timezone_object_construct(&TimeZone::getUnknown(), return_value, 0 TSRMLS_CC); local [all...] |
| /PHP_TRUNK/ext/bcmath/ |
| H A D | bcmath.c | 196 bc_str2num(num, str, 0 TSRMLS_CC); 200 bc_str2num(num, str, strlen(p+1) TSRMLS_CC); 214 if (zend_parse_parameters(argc TSRMLS_CC, "ss|l", &left, &left_len, &right, &right_len, &scale_param) == FAILURE) { 222 bc_init_num(&first TSRMLS_CC); 223 bc_init_num(&second TSRMLS_CC); 224 bc_init_num(&result TSRMLS_CC); 225 php_str2num(&first, left TSRMLS_CC); 226 php_str2num(&second, right TSRMLS_CC); 253 if (zend_parse_parameters(argc TSRMLS_CC, "ss|l", &left, &left_len, &right, &right_len, &scale_param) == FAILURE) { 261 bc_init_num(&first TSRMLS_CC); [all...] |
| /PHP_TRUNK/ext/dom/ |
| H A D | cdatasection.c | 60 zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling TSRMLS_CC); 61 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &id, dom_cdatasection_class_entry, &value, &value_len) == FAILURE) { 62 zend_restore_error_handling(&error_handling TSRMLS_CC); 66 zend_restore_error_handling(&error_handling TSRMLS_CC); 70 php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); 74 intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); 78 php_libxml_node_free_resource(oldnode TSRMLS_CC); 80 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC);
|
| H A D | comment.c | 60 zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling TSRMLS_CC); 61 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|s", &id, dom_comment_class_entry, &value, &value_len) == FAILURE) { 62 zend_restore_error_handling(&error_handling TSRMLS_CC); 66 zend_restore_error_handling(&error_handling TSRMLS_CC); 70 php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); 74 intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); 78 php_libxml_node_free_resource(oldnode TSRMLS_CC); 80 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern TSRMLS_CC);
|
| H A D | entityreference.c | 59 zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling TSRMLS_CC); 60 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &id, dom_entityreference_class_entry, &name, &name_len) == FAILURE) { 61 zend_restore_error_handling(&error_handling TSRMLS_CC); 65 zend_restore_error_handling(&error_handling TSRMLS_CC); 69 php_dom_throw_error(INVALID_CHARACTER_ERR, 1 TSRMLS_CC); 76 php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); 80 intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); 84 php_libxml_node_free_resource(oldnode TSRMLS_CC); 86 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern TSRMLS_CC);
|
| /PHP_TRUNK/ext/mysqli/ |
| H A D | mysqli_exception.c | 50 php_error_docref(NULL TSRMLS_CC, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message); 60 message TSRMLS_CC); 65 sqlstate TSRMLS_CC); 68 "00000" TSRMLS_CC); 72 zend_update_property_long(mysqli_exception_class_entry, sql_ex, "code", sizeof("code") - 1, errorno TSRMLS_CC); 74 zend_throw_exception_object(sql_ex TSRMLS_CC);
|
| /PHP_TRUNK/ext/session/ |
| H A D | mod_user_class.c | 26 php_error_docref(NULL TSRMLS_CC, E_CORE_ERROR, "Cannot call default session handler"); \ 33 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Parent session handler is not open"); \ 46 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &save_path, &save_path_len, &session_name, &session_name_len) == FAILURE) { 51 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_open(&PS(mod_data), save_path, session_name TSRMLS_CC)); 66 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_close(&PS(mod_data) TSRMLS_CC)); 79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { 83 if (PS(default_mod)->s_read(&PS(mod_data), key, &val, &val_len TSRMLS_CC) == FAILURE) { 103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAILURE) { 107 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, val_len TSRMLS_CC)); 120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, " [all...] |
| /PHP_TRUNK/ext/standard/ |
| H A D | ftok.c | 38 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ps", &pathname, &pathname_len, &proj, &proj_len) == FAILURE) { 43 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Pathname is invalid"); 48 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Project identifier is invalid"); 52 if (php_check_open_basedir(pathname TSRMLS_CC)) { 58 php_error_docref(NULL TSRMLS_CC, E_WARNING, "ftok() failed - %s", strerror(errno));
|
| H A D | link.c | 62 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &link, &link_len) == FAILURE) { 66 if (php_check_open_basedir(link TSRMLS_CC)) { 73 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno)); 93 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &link, &link_len) == FAILURE) { 100 if (php_check_open_basedir(dirname TSRMLS_CC)) { 107 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno)); 129 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pp", &topath, &topath_len, &frompath, &frompath_len) == FAILURE) { 133 if (!expand_filepath(frompath, source_p TSRMLS_CC)) { 134 php_error_docref(NULL TSRMLS_CC, E_WARNING, "No such file or directory"); 141 if (!expand_filepath_ex(topath, dest_p, dirname, len TSRMLS_CC)) { [all...] |
| H A D | link_win32.c | 69 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &link, &link_len) == FAILURE) { 78 php_error_docref(NULL TSRMLS_CC, E_WARNING, "readlink failed to read the symbolic link (%s), error %d)", link, GetLastError()); 94 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &link, &link_len) == FAILURE) { 100 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno)); 129 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't call CreateSymbolicLinkA"); 133 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't call get a handle on kernel32.dll"); 137 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pp", &topath, &topath_len, &frompath, &frompath_len) == FAILURE) { 141 if (!expand_filepath(frompath, source_p TSRMLS_CC)) { 142 php_error_docref(NULL TSRMLS_CC, E_WARNING, "No such file or directory"); 149 if (!expand_filepath_ex(topath, dest_p, dirname, len TSRMLS_CC)) { [all...] |
| /PHP_TRUNK/ext/intl/calendar/ |
| H A D | calendar_methods.cpp | 47 0 TSRMLS_CC ); 57 intl_error_reset(NULL TSRMLS_CC); 59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|Zs!", 62 "intlcal_create_calendar: bad arguments", 0 TSRMLS_CC); 67 "intlcal_create_instance" TSRMLS_CC); 80 intl_error_set(NULL, status, "Error creating ICU Calendar object", 0 TSRMLS_CC); 84 calendar_object_create(return_value, cal TSRMLS_CC); 149 intl_error_reset(NULL TSRMLS_CC); 151 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssb", 154 "intlcal_get_keyword_values_for_locale: bad arguments", 0 TSRMLS_CC); 786 "intlcal_get_time_zone: could not clone TimeZone", 0 TSRMLS_CC); local 1235 "range for a 64-bit integer", 0 TSRMLS_CC); local 1261 1 TSRMLS_CC); local 1275 1 TSRMLS_CC); local [all...] |
| /PHP_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd.h | 73 #define mysqlnd_plugin_find(name) _mysqlnd_plugin_find((name) TSRMLS_CC); 76 #define mysqlnd_plugin_apply_with_argument(func, argument) _mysqlnd_plugin_apply_with_argument((func), (argument) TSRMLS_CC); 78 #define mysqlnd_restart_psession(conn) ((conn)->data)->m->restart_psession((conn)->data TSRMLS_CC) 79 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data TSRMLS_CC) 88 #define mysqlnd_init(persistent) _mysqlnd_init((persistent) TSRMLS_CC) 99 #define mysqlnd_change_user(conn, user, passwd, db, silent) ((conn)->data)->m->change_user((conn)->data, (user), (passwd), (db), (silent), strlen((passwd)) TSRMLS_CC) 100 #define mysqlnd_change_user_ex(conn, user, passwd, db, silent, passwd_len) ((conn)->data)->m->change_user((conn)->data, (user), (passwd), (db), (silent), (passwd_len) TSRMLS_CC) 102 #define mysqlnd_debug(x) _mysqlnd_debug((x) TSRMLS_CC) 106 #define mysqlnd_fetch_into(result, flags, ret_val, ext) (result)->m.fetch_into((result), (flags), (ret_val), (ext) TSRMLS_CC ZEND_FILE_LINE_CC) 107 #define mysqlnd_fetch_row_c(result) (result)->m.fetch_row_c((result) TSRMLS_CC) [all...] |
| /PHP_TRUNK/ext/opcache/Optimizer/ |
| H A D | pass5.c | 2 zend_block_optimization(op_array TSRMLS_CC); variable
|
| /PHP_TRUNK/Zend/ |
| H A D | zend_language_parser.y | 229 | namespace_name T_NS_SEPARATOR T_STRING { zend_do_build_namespace_name(&$$, &$1, &$3 TSRMLS_CC); } 237 | T_NAMESPACE namespace_name ';' { zend_do_begin_namespace(&$2, 0 TSRMLS_CC); } 238 | T_NAMESPACE namespace_name '{' { zend_do_begin_namespace(&$2, 1 TSRMLS_CC); } 240 | T_NAMESPACE '{' { zend_do_begin_namespace(NULL, 1 TSRMLS_CC); } 252 namespace_name { zend_do_use(&$1, NULL, 0 TSRMLS_CC); } 253 | namespace_name T_AS T_STRING { zend_do_use(&$1, &$3, 0 TSRMLS_CC); } 254 | T_NS_SEPARATOR namespace_name { zend_do_use(&$2, NULL, 1 TSRMLS_CC); } 255 | T_NS_SEPARATOR namespace_name T_AS T_STRING { zend_do_use(&$2, &$4, 1 TSRMLS_CC); } 259 constant_declaration ',' T_STRING '=' static_scalar { zend_do_declare_constant(&$3, &$5 TSRMLS_CC); } 260 | T_CONST T_STRING '=' static_scalar { zend_do_declare_constant(&$2, &$4 TSRMLS_CC); } [all...] |
| /PHP_TRUNK/ext/gd/ |
| H A D | gd_compat.c | 54 php_error_docref(NULL TSRMLS_CC, E_WARNING, "gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully\n"); 58 php_error_docref(NULL TSRMLS_CC, E_WARNING, "gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully\n");
|