PHP  
 PHP: Test and Code Coverage Analysis
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

LCOV - code coverage report
Current view: top level - ext/intl/resourcebundle - resourcebundle_class.c (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 135 165 81.8 %
Date: 2015-05-21 Functions: 14 14 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :    +----------------------------------------------------------------------+
       3             :    | PHP Version 7                                                        |
       4             :    +----------------------------------------------------------------------+
       5             :    | This source file is subject to version 3.01 of the PHP license,      |
       6             :    | that is bundled with this package in the file LICENSE, and is        |
       7             :    | available through the world-wide-web at the following url:           |
       8             :    | http://www.php.net/license/3_01.txt                                  |
       9             :    | If you did not receive a copy of the PHP license and are unable to   |
      10             :    | obtain it through the world-wide-web, please send a note to          |
      11             :    | license@php.net so we can mail you a copy immediately.               |
      12             :    +----------------------------------------------------------------------+
      13             :    | Authors: Hans-Peter Oeri (University of St.Gallen) <hp@oeri.ch>      |
      14             :    +----------------------------------------------------------------------+
      15             :  */
      16             : 
      17             : #include <stdlib.h>
      18             : #include <unicode/ures.h>
      19             : #include <unicode/uenum.h>
      20             : 
      21             : #include <zend.h>
      22             : #include <Zend/zend_exceptions.h>
      23             : #include <Zend/zend_interfaces.h>
      24             : #include <php.h>
      25             : 
      26             : #include "php_intl.h"
      27             : #include "intl_data.h"
      28             : #include "intl_common.h"
      29             : 
      30             : #include "resourcebundle/resourcebundle.h"
      31             : #include "resourcebundle/resourcebundle_iterator.h"
      32             : #include "resourcebundle/resourcebundle_class.h"
      33             : 
      34             : zend_class_entry *ResourceBundle_ce_ptr = NULL;
      35             : 
      36             : static zend_object_handlers ResourceBundle_object_handlers;
      37             : 
      38             : /* {{{ ResourceBundle_object_dtor */
      39          24 : static void ResourceBundle_object_destroy( zend_object *object )
      40             : {
      41          24 :         ResourceBundle_object *rb = php_intl_resourcebundle_fetch_object(object);
      42             : 
      43             :         // only free local errors
      44          24 :         intl_error_reset( INTL_DATA_ERROR_P(rb) );
      45             : 
      46          24 :         if (rb->me) {
      47          21 :                 ures_close( rb->me );
      48             :         }
      49          24 :         if (rb->child) {
      50          12 :                 ures_close( rb->child );
      51             :         }
      52             : 
      53             :         //???zend_object_std_dtor( object );
      54          24 : }
      55             : /* }}} */
      56             : 
      57             : /* {{{ ResourceBundle_object_create */
      58          26 : static zend_object *ResourceBundle_object_create( zend_class_entry *ce )
      59             : {
      60             :         ResourceBundle_object *rb;
      61             : 
      62          26 :         rb = ecalloc( 1, sizeof(ResourceBundle_object) + zend_object_properties_size(ce));
      63             : 
      64          26 :         zend_object_std_init( &rb->zend, ce );
      65          26 :         object_properties_init( &rb->zend, ce);
      66             : 
      67          26 :         intl_error_init( INTL_DATA_ERROR_P(rb) );
      68          26 :         rb->me = NULL;
      69          26 :         rb->child = NULL;
      70             : 
      71          26 :         rb->zend.handlers = &ResourceBundle_object_handlers;
      72             : 
      73          26 :         return &rb->zend;
      74             : }
      75             : /* }}} */
      76             : 
      77             : /* {{{ ResourceBundle_ctor */
      78          16 : static int resourcebundle_ctor(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_constructor)
      79             : {
      80             :         const char *bundlename;
      81          16 :         size_t          bundlename_len = 0;
      82             :         const char *locale;
      83          16 :         size_t          locale_len = 0;
      84          16 :         zend_bool       fallback = 1;
      85          16 :         int         zpp_flags = is_constructor ? ZEND_PARSE_PARAMS_THROW : 0;
      86             : 
      87          16 :         zval                  *object = return_value;
      88          16 :         ResourceBundle_object *rb = Z_INTL_RESOURCEBUNDLE_P( object );
      89             : 
      90          16 :         intl_error_reset( NULL );
      91             : 
      92          16 :         if( zend_parse_parameters_ex( zpp_flags, ZEND_NUM_ARGS(), "s!s!|b",
      93             :                 &locale, &locale_len, &bundlename, &bundlename_len, &fallback ) == FAILURE )
      94             :         {
      95           1 :                 intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
      96             :                         "resourcebundle_ctor: unable to parse input parameters", 0 );
      97           1 :                 return FAILURE;
      98             :         }
      99             : 
     100          15 :         INTL_CHECK_LOCALE_LEN_OR_FAILURE(locale_len);
     101             : 
     102          15 :         if (locale == NULL) {
     103           0 :                 locale = intl_locale_get_default();
     104             :         }
     105             : 
     106          15 :         if (fallback) {
     107          13 :                 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb));
     108             :         } else {
     109           2 :                 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb));
     110             :         }
     111             : 
     112          15 :         INTL_CTOR_CHECK_STATUS(rb, "resourcebundle_ctor: Cannot load libICU resource bundle");
     113             : 
     114          11 :         if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING ||
     115           0 :                         INTL_DATA_ERROR_CODE(rb) == U_USING_DEFAULT_WARNING)) {
     116             :                 char *pbuf;
     117           0 :                 intl_errors_set_code(NULL, INTL_DATA_ERROR_CODE(rb));
     118           0 :                 spprintf(&pbuf, 0, "resourcebundle_ctor: Cannot load libICU resource "
     119             :                                 "'%s' without fallback from %s to %s",
     120           0 :                                 bundlename ? bundlename : "(default data)", locale,
     121             :                                 ures_getLocaleByType(
     122           0 :                                         rb->me, ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(rb)));
     123           0 :                 intl_errors_set_custom_msg(INTL_DATA_ERROR_P(rb), pbuf, 1);
     124           0 :                 efree(pbuf);
     125           0 :                 return FAILURE;
     126             :         }
     127             : 
     128          11 :         return SUCCESS;
     129             : }
     130             : /* }}} */
     131             : 
     132             : /* {{{ arginfo_resourcebundle__construct */
     133             : ZEND_BEGIN_ARG_INFO_EX( arginfo_resourcebundle___construct, 0, 0, 2 )
     134             :         ZEND_ARG_INFO( 0, locale )
     135             :         ZEND_ARG_INFO( 0, bundlename )
     136             :         ZEND_ARG_INFO( 0, fallback )
     137             : ZEND_END_ARG_INFO()
     138             : /* }}} */
     139             : 
     140             : /* {{{ proto void ResourceBundle::__construct( string $locale [, string $bundlename [, bool $fallback = true ]] )
     141             :  * ResourceBundle object constructor
     142             :  */
     143           9 : PHP_METHOD( ResourceBundle, __construct )
     144             : {
     145             :         zend_error_handling error_handling;
     146             : 
     147           9 :         zend_replace_error_handling(EH_THROW, IntlException_ce_ptr, &error_handling);
     148           9 :         return_value = getThis();
     149           9 :         if (resourcebundle_ctor(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1) == FAILURE) {
     150           2 :                 if (!EG(exception)) {
     151           2 :                         zend_throw_exception(IntlException_ce_ptr, "Constructor failed", 0);
     152             :                 }
     153             :         }
     154           9 :         zend_restore_error_handling(&error_handling);
     155           9 : }
     156             : /* }}} */
     157             : 
     158             : /* {{{ proto ResourceBundle ResourceBundle::create( string $locale [, string $bundlename [, bool $fallback = true ]] )
     159             : proto ResourceBundle resourcebundle_create( string $locale [, string $bundlename [, bool $fallback = true ]] )
     160             : */
     161           7 : PHP_FUNCTION( resourcebundle_create )
     162             : {
     163           7 :         object_init_ex( return_value, ResourceBundle_ce_ptr );
     164           7 :         if (resourcebundle_ctor(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0) == FAILURE) {
     165           3 :                 zval_ptr_dtor(return_value);
     166           3 :                 RETURN_NULL();
     167             :         }
     168             : }
     169             : /* }}} */
     170             : 
     171             : /* {{{ resourcebundle_array_fetch */
     172          35 : static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_value, int fallback)
     173             : {
     174          35 :         int32_t     meindex = 0;
     175          35 :         char *      mekey = NULL;
     176          35 :     zend_bool    is_numeric = 0;
     177             :         char         *pbuf;
     178             :         ResourceBundle_object *rb;
     179             : 
     180          35 :         intl_error_reset( NULL );
     181          35 :         RESOURCEBUNDLE_METHOD_FETCH_OBJECT;
     182             : 
     183          35 :         if(Z_TYPE_P(offset) == IS_LONG) {
     184           3 :                 is_numeric = 1;
     185           3 :                 meindex = (int32_t)Z_LVAL_P(offset);
     186           3 :                 rb->child = ures_getByIndex( rb->me, meindex, rb->child, &INTL_DATA_ERROR_CODE(rb) );
     187          32 :         } else if(Z_TYPE_P(offset) == IS_STRING) {
     188          32 :                 mekey = Z_STRVAL_P(offset);
     189          32 :                 rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) );
     190             :         } else {
     191           0 :                 intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR,
     192             :                         "resourcebundle_get: index should be integer or string", 0);
     193           0 :                 RETURN_NULL();
     194             :         }
     195             : 
     196          35 :         intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) );
     197          35 :         if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) {
     198           5 :                 if (is_numeric) {
     199           0 :                         spprintf( &pbuf, 0, "Cannot load resource element %d", meindex );
     200             :                 } else {
     201           5 :                         spprintf( &pbuf, 0, "Cannot load resource element '%s'", mekey );
     202             :                 }
     203           5 :                 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 );
     204           5 :                 efree(pbuf);
     205           5 :                 RETURN_NULL();
     206             :         }
     207             : 
     208          30 :         if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb) == U_USING_DEFAULT_WARNING)) {
     209             :                 UErrorCode icuerror;
     210           0 :                 const char * locale = ures_getLocaleByType( rb->me, ULOC_ACTUAL_LOCALE, &icuerror );
     211           0 :                 if (is_numeric) {
     212           0 :                         spprintf( &pbuf, 0, "Cannot load element %d without fallback from to %s", meindex, locale );
     213             :                 } else {
     214           0 :                         spprintf( &pbuf, 0, "Cannot load element '%s' without fallback from to %s", mekey, locale );
     215             :                 }
     216           0 :                 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 );
     217           0 :                 efree(pbuf);
     218           0 :                 RETURN_NULL();
     219             :         }
     220             : 
     221          30 :         resourcebundle_extract_value( return_value, rb );
     222             : }
     223             : /* }}} */
     224             : 
     225             : /* {{{ resourcebundle_array_get */
     226          15 : zval *resourcebundle_array_get(zval *object, zval *offset, int type, zval *rv)
     227             : {
     228          15 :         if(offset == NULL) {
     229           0 :                 php_error( E_ERROR, "Cannot apply [] to ResourceBundle object" );
     230             :         }
     231          15 :         ZVAL_NULL(rv);
     232          15 :         resourcebundle_array_fetch(object, offset, rv, 1);
     233          15 :         return rv;
     234             : }
     235             : /* }}} */
     236             : 
     237             : /* {{{ arginfo_resourcebundle_get */
     238             : ZEND_BEGIN_ARG_INFO_EX( arginfo_resourcebundle_get, 0, 0, 1 )
     239             :         ZEND_ARG_INFO( 0, index )
     240             :         ZEND_ARG_INFO( 0, fallback )
     241             : ZEND_END_ARG_INFO()
     242             : /* }}} */
     243             : 
     244             : /* {{{ proto mixed ResourceBundle::get( integer|string $resindex [, bool $fallback = true ] )
     245             :  * proto mixed resourcebundle_get( ResourceBundle $rb, integer|string $resindex [, bool $fallback = true ] )
     246             :  * Get resource identified by numerical index or key name.
     247             :  */
     248          21 : PHP_FUNCTION( resourcebundle_get )
     249             : {
     250          21 :         zend_bool   fallback = 1;
     251             :         zval *          offset;
     252             :         zval *      object;
     253             : 
     254          21 :         if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Oz|b",  &object, ResourceBundle_ce_ptr, &offset, &fallback ) == FAILURE) {
     255           1 :                 intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
     256             :                         "resourcebundle_get: unable to parse input params", 0);
     257           1 :                 RETURN_FALSE;
     258             :         }
     259             : 
     260          20 :         resourcebundle_array_fetch(object, offset, return_value, fallback);
     261             : }
     262             : /* }}} */
     263             : 
     264             : /* {{{ resourcebundle_array_count */
     265           1 : int resourcebundle_array_count(zval *object, zend_long *count)
     266             : {
     267             :         ResourceBundle_object *rb;
     268           1 :         RESOURCEBUNDLE_METHOD_FETCH_OBJECT_NO_CHECK;
     269             : 
     270           1 :         if (rb->me == NULL) {
     271           0 :                 intl_errors_set(&rb->error, U_ILLEGAL_ARGUMENT_ERROR,
     272             :                                 "Found unconstructed ResourceBundle", 0);
     273           0 :                 return 0;
     274             :         }
     275             : 
     276           1 :         *count = ures_getSize( rb->me );
     277             : 
     278           1 :         return SUCCESS;
     279             : }
     280             : /* }}} */
     281             : 
     282             : /* {{{ arginfo_resourcebundle_count */
     283             : ZEND_BEGIN_ARG_INFO_EX( arginfo_resourcebundle_count, 0, 0, 0 )
     284             : ZEND_END_ARG_INFO()
     285             : /* }}} */
     286             : 
     287             : /* {{{ proto int ResourceBundle::count()
     288             :  * proto int resourcebundle_count( ResourceBundle $bundle )
     289             :  * Get resources count
     290             :  */
     291           3 : PHP_FUNCTION( resourcebundle_count )
     292             : {
     293             :         int32_t                len;
     294           3 :         RESOURCEBUNDLE_METHOD_INIT_VARS;
     295             : 
     296           3 :         if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O", &object, ResourceBundle_ce_ptr ) == FAILURE ) {
     297           1 :                 intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
     298             :                         "resourcebundle_count: unable to parse input params", 0);
     299           1 :                 RETURN_FALSE;
     300             :         }
     301             : 
     302           2 :         RESOURCEBUNDLE_METHOD_FETCH_OBJECT;
     303             : 
     304           2 :         len = ures_getSize( rb->me );
     305           2 :         RETURN_LONG( len );
     306             : }
     307             : 
     308             : /* {{{ arginfo_resourcebundle_getlocales */
     309             : ZEND_BEGIN_ARG_INFO_EX( arginfo_resourcebundle_getlocales, 0, 0, 1 )
     310             :         ZEND_ARG_INFO( 0, bundlename )
     311             : ZEND_END_ARG_INFO()
     312             : /* }}} */
     313             : 
     314             : /* {{{ proto array ResourceBundle::getLocales( string $bundlename )
     315             :  * proto array resourcebundle_locales( string $bundlename )
     316             :  * Get available locales from ResourceBundle name
     317             :  */
     318           3 : PHP_FUNCTION( resourcebundle_locales )
     319             : {
     320             :         char * bundlename;
     321           3 :         size_t    bundlename_len = 0;
     322             :         const char * entry;
     323             :         int entry_len;
     324             :         UEnumeration *icuenum;
     325           3 :         UErrorCode   icuerror = U_ZERO_ERROR;
     326             : 
     327           3 :         intl_errors_reset( NULL );
     328             : 
     329           3 :         if( zend_parse_parameters(ZEND_NUM_ARGS(), "s", &bundlename, &bundlename_len ) == FAILURE )
     330             :         {
     331           1 :                 intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
     332             :                         "resourcebundle_locales: unable to parse input params", 0);
     333           1 :                 RETURN_FALSE;
     334             :         }
     335             : 
     336           2 :         if(bundlename_len == 0) {
     337             :                 // fetch default locales list
     338           0 :                 bundlename = NULL;
     339             :         }
     340             : 
     341           2 :         icuenum = ures_openAvailableLocales( bundlename, &icuerror );
     342           2 :         INTL_CHECK_STATUS(icuerror, "Cannot fetch locales list");
     343             : 
     344           2 :         uenum_reset( icuenum, &icuerror );
     345           2 :         INTL_CHECK_STATUS(icuerror, "Cannot iterate locales list");
     346             : 
     347           2 :         array_init( return_value );
     348           8 :         while ((entry = uenum_next( icuenum, &entry_len, &icuerror ))) {
     349           4 :                 add_next_index_stringl( return_value, (char *) entry, entry_len);
     350             :         }
     351           2 :         uenum_close( icuenum );
     352             : }
     353             : /* }}} */
     354             : 
     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             : /* {{{ proto string ResourceBundle::getErrorCode( )
     361             :  * proto string resourcebundle_get_error_code( ResourceBundle $bundle )
     362             :  * Get text description for ResourceBundle's last error code.
     363             :  */
     364           1 : PHP_FUNCTION( resourcebundle_get_error_code )
     365             : {
     366           1 :         RESOURCEBUNDLE_METHOD_INIT_VARS;
     367             : 
     368           1 :         if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O",
     369             :                 &object, ResourceBundle_ce_ptr ) == FAILURE )
     370             :         {
     371           1 :                 intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
     372             :                         "resourcebundle_get_error_code: unable to parse input params", 0 );
     373           1 :                 RETURN_FALSE;
     374             :         }
     375             : 
     376           0 :         rb = Z_INTL_RESOURCEBUNDLE_P( object );
     377             : 
     378           0 :         RETURN_LONG(INTL_DATA_ERROR_CODE(rb));
     379             : }
     380             : /* }}} */
     381             : 
     382             : /* {{{ arginfo_resourcebundle_get_error_message */
     383             : ZEND_BEGIN_ARG_INFO_EX( arginfo_resourcebundle_get_error_message, 0, 0, 0 )
     384             : ZEND_END_ARG_INFO()
     385             : /* }}} */
     386             : 
     387             : /* {{{ proto string ResourceBundle::getErrorMessage( )
     388             :  * proto string resourcebundle_get_error_message( ResourceBundle $bundle )
     389             :  * Get text description for ResourceBundle's last error.
     390             :  */
     391           1 : PHP_FUNCTION( resourcebundle_get_error_message )
     392             : {
     393           1 :         zend_string* message = NULL;
     394           1 :         RESOURCEBUNDLE_METHOD_INIT_VARS;
     395             : 
     396           1 :         if( zend_parse_method_parameters( ZEND_NUM_ARGS(), getThis(), "O",
     397             :                 &object, ResourceBundle_ce_ptr ) == FAILURE )
     398             :         {
     399           1 :                 intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
     400             :                         "resourcebundle_get_error_message: unable to parse input params", 0 );
     401           1 :                 RETURN_FALSE;
     402             :         }
     403             : 
     404           0 :         rb = Z_INTL_RESOURCEBUNDLE_P( object );
     405           0 :         message = intl_error_get_message(INTL_DATA_ERROR_P(rb));
     406           0 :         RETURN_STR(message);
     407             : }
     408             : /* }}} */
     409             : 
     410             : /* {{{ ResourceBundle_class_functions
     411             :  * Every 'ResourceBundle' class method has an entry in this table
     412             :  */
     413             : static zend_function_entry ResourceBundle_class_functions[] = {
     414             :         PHP_ME( ResourceBundle, __construct, arginfo_resourcebundle___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR )
     415             :         ZEND_NAMED_ME( create, ZEND_FN( resourcebundle_create ), arginfo_resourcebundle___construct, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
     416             :         ZEND_NAMED_ME( get, ZEND_FN(resourcebundle_get), arginfo_resourcebundle_get, ZEND_ACC_PUBLIC )
     417             :         ZEND_NAMED_ME( count, ZEND_FN(resourcebundle_count), arginfo_resourcebundle_count, ZEND_ACC_PUBLIC )
     418             :         ZEND_NAMED_ME( getLocales, ZEND_FN(resourcebundle_locales), arginfo_resourcebundle_getlocales, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC )
     419             :         ZEND_NAMED_ME( getErrorCode, ZEND_FN(resourcebundle_get_error_code), arginfo_resourcebundle_get_error_code, ZEND_ACC_PUBLIC )
     420             :         ZEND_NAMED_ME( getErrorMessage, ZEND_FN(resourcebundle_get_error_message), arginfo_resourcebundle_get_error_message, ZEND_ACC_PUBLIC )
     421             :         PHP_FE_END
     422             : };
     423             : /* }}} */
     424             : 
     425             : /* {{{ resourcebundle_register_class
     426             :  * Initialize 'ResourceBundle' class
     427             :  */
     428       20916 : void resourcebundle_register_class( void )
     429             : {
     430             :         zend_class_entry ce;
     431             : 
     432       20916 :         INIT_CLASS_ENTRY( ce, "ResourceBundle", ResourceBundle_class_functions );
     433             : 
     434       20916 :         ce.create_object = ResourceBundle_object_create;
     435       20916 :         ce.get_iterator = resourcebundle_get_iterator;
     436             : 
     437       20916 :         ResourceBundle_ce_ptr = zend_register_internal_class( &ce );
     438             : 
     439       20916 :         if( !ResourceBundle_ce_ptr )
     440             :         {
     441           0 :                 zend_error(E_ERROR, "Failed to register ResourceBundle class");
     442           0 :                 return;
     443             :         }
     444             : 
     445       20916 :         ResourceBundle_object_handlers = std_object_handlers;
     446       20916 :         ResourceBundle_object_handlers.offset = XtOffsetOf(ResourceBundle_object, zend);
     447       20916 :         ResourceBundle_object_handlers.clone_obj          = NULL; /* ICU ResourceBundle has no clone implementation */
     448       20916 :         ResourceBundle_object_handlers.dtor_obj = ResourceBundle_object_destroy;
     449       20916 :         ResourceBundle_object_handlers.read_dimension = resourcebundle_array_get;
     450       20916 :         ResourceBundle_object_handlers.count_elements = resourcebundle_array_count;
     451             : 
     452       20916 :         zend_class_implements(ResourceBundle_ce_ptr, 1, zend_ce_traversable);
     453             : }
     454             : /* }}} */
     455             : 
     456             : /*
     457             :  * Local variables:
     458             :  * tab-width: 4
     459             :  * c-basic-offset: 4
     460             :  * End:
     461             :  * vim600: noet sw=4 ts=4 fdm=marker
     462             :  * vim<600: noet sw=4 ts=4
     463             :  */

Generated by: LCOV version 1.10

Generated at Thu, 21 May 2015 19:58:57 +0000 (3 days ago)

Copyright © 2005-2015 The PHP Group
All rights reserved.