28
28
#include "resourcebundle/resourcebundle.h"
29
29
#include "resourcebundle/resourcebundle_iterator.h"
30
30
#include "resourcebundle/resourcebundle_class.h"
31
+ #include "resourcebundle/resourcebundle_arginfo.h"
31
32
32
33
zend_class_entry * ResourceBundle_ce_ptr = NULL ;
33
34
@@ -131,14 +132,6 @@ static int resourcebundle_ctor(INTERNAL_FUNCTION_PARAMETERS)
131
132
}
132
133
/* }}} */
133
134
134
- /* {{{ arginfo_resourcebundle__construct */
135
- ZEND_BEGIN_ARG_INFO_EX ( arginfo_resourcebundle___construct , 0 , 0 , 2 )
136
- ZEND_ARG_INFO ( 0 , locale )
137
- ZEND_ARG_INFO ( 0 , bundlename )
138
- ZEND_ARG_INFO ( 0 , fallback )
139
- ZEND_END_ARG_INFO ()
140
- /* }}} */
141
-
142
135
/* {{{ proto ResourceBundle::__construct( string $locale [, string $bundlename [, bool $fallback = true ]] )
143
136
* ResourceBundle object constructor
144
137
*/
@@ -236,13 +229,6 @@ zval *resourcebundle_array_get(zend_object *object, zval *offset, int type, zval
236
229
}
237
230
/* }}} */
238
231
239
- /* {{{ arginfo_resourcebundle_get */
240
- ZEND_BEGIN_ARG_INFO_EX ( arginfo_resourcebundle_get , 0 , 0 , 1 )
241
- ZEND_ARG_INFO ( 0 , index )
242
- ZEND_ARG_INFO ( 0 , fallback )
243
- ZEND_END_ARG_INFO ()
244
- /* }}} */
245
-
246
232
/* {{{ proto mixed ResourceBundle::get( int|string $resindex [, bool $fallback = true ] )
247
233
* proto mixed resourcebundle_get( ResourceBundle $rb, int|string $resindex [, bool $fallback = true ] )
248
234
* Get resource identified by numerical index or key name.
@@ -278,11 +264,6 @@ int resourcebundle_array_count(zend_object *object, zend_long *count)
278
264
}
279
265
/* }}} */
280
266
281
- /* {{{ arginfo_resourcebundle_count */
282
- ZEND_BEGIN_ARG_INFO_EX ( arginfo_resourcebundle_count , 0 , 0 , 0 )
283
- ZEND_END_ARG_INFO ()
284
- /* }}} */
285
-
286
267
/* {{{ proto int ResourceBundle::count()
287
268
* proto int resourcebundle_count( ResourceBundle $bundle )
288
269
* Get resources count
@@ -302,12 +283,6 @@ PHP_FUNCTION( resourcebundle_count )
302
283
RETURN_LONG ( len );
303
284
}
304
285
305
- /* {{{ arginfo_resourcebundle_getlocales */
306
- ZEND_BEGIN_ARG_INFO_EX ( arginfo_resourcebundle_getlocales , 0 , 0 , 1 )
307
- ZEND_ARG_INFO ( 0 , bundlename )
308
- ZEND_END_ARG_INFO ()
309
- /* }}} */
310
-
311
286
/* {{{ proto array ResourceBundle::getLocales( string $bundlename )
312
287
* proto array resourcebundle_locales( string $bundlename )
313
288
* Get available locales from ResourceBundle name
@@ -352,11 +327,6 @@ PHP_FUNCTION( resourcebundle_locales )
352
327
}
353
328
/* }}} */
354
329
355
- /* {{{ arginfo_resourcebundle_get_error_code */
356
- ZEND_BEGIN_ARG_INFO_EX ( arginfo_resourcebundle_get_error_code , 0 , 0 , 0 )
357
- ZEND_END_ARG_INFO ()
358
- /* }}} */
359
-
360
330
/* {{{ proto string ResourceBundle::getErrorCode( )
361
331
* proto string resourcebundle_get_error_code( ResourceBundle $bundle )
362
332
* Get text description for ResourceBundle's last error code.
@@ -377,11 +347,6 @@ PHP_FUNCTION( resourcebundle_get_error_code )
377
347
}
378
348
/* }}} */
379
349
380
- /* {{{ arginfo_resourcebundle_get_error_message */
381
- ZEND_BEGIN_ARG_INFO_EX ( arginfo_resourcebundle_get_error_message , 0 , 0 , 0 )
382
- ZEND_END_ARG_INFO ()
383
- /* }}} */
384
-
385
350
/* {{{ proto string ResourceBundle::getErrorMessage( )
386
351
* proto string resourcebundle_get_error_message( ResourceBundle $bundle )
387
352
* Get text description for ResourceBundle's last error.
@@ -407,13 +372,13 @@ PHP_FUNCTION( resourcebundle_get_error_message )
407
372
* Every 'ResourceBundle' class method has an entry in this table
408
373
*/
409
374
static const zend_function_entry ResourceBundle_class_functions [] = {
410
- PHP_ME ( ResourceBundle , __construct , arginfo_resourcebundle___construct , ZEND_ACC_PUBLIC )
411
- ZEND_NAMED_ME ( create , ZEND_FN ( resourcebundle_create ), arginfo_resourcebundle___construct , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
412
- ZEND_NAMED_ME ( get , ZEND_FN (resourcebundle_get ), arginfo_resourcebundle_get , ZEND_ACC_PUBLIC )
413
- ZEND_NAMED_ME ( count , ZEND_FN (resourcebundle_count ), arginfo_resourcebundle_count , ZEND_ACC_PUBLIC )
414
- ZEND_NAMED_ME ( getLocales , ZEND_FN (resourcebundle_locales ), arginfo_resourcebundle_getlocales , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC )
415
- ZEND_NAMED_ME ( getErrorCode , ZEND_FN (resourcebundle_get_error_code ), arginfo_resourcebundle_get_error_code , ZEND_ACC_PUBLIC )
416
- ZEND_NAMED_ME ( getErrorMessage , ZEND_FN (resourcebundle_get_error_message ), arginfo_resourcebundle_get_error_message , ZEND_ACC_PUBLIC )
375
+ PHP_ME ( ResourceBundle , __construct , arginfo_class_ResourceBundle___construct , ZEND_ACC_PUBLIC )
376
+ ZEND_NAMED_ME ( create , ZEND_FN ( resourcebundle_create ), arginfo_class_ResourceBundle_create , ZEND_ACC_PUBLIC |ZEND_ACC_STATIC )
377
+ ZEND_NAMED_ME ( get , ZEND_FN (resourcebundle_get ), arginfo_class_ResourceBundle_get , ZEND_ACC_PUBLIC )
378
+ ZEND_NAMED_ME ( count , ZEND_FN (resourcebundle_count ), arginfo_class_ResourceBundle_count , ZEND_ACC_PUBLIC )
379
+ ZEND_NAMED_ME ( getLocales , ZEND_FN (resourcebundle_locales ), arginfo_class_ResourceBundle_getLocales , ZEND_ACC_PUBLIC | ZEND_ACC_STATIC )
380
+ ZEND_NAMED_ME ( getErrorCode , ZEND_FN (resourcebundle_get_error_code ), arginfo_class_ResourceBundle_getErrorCode , ZEND_ACC_PUBLIC )
381
+ ZEND_NAMED_ME ( getErrorMessage , ZEND_FN (resourcebundle_get_error_message ), arginfo_class_ResourceBundle_getErrorMessage , ZEND_ACC_PUBLIC )
417
382
PHP_FE_END
418
383
};
419
384
/* }}} */
0 commit comments