From:             felipensp at gmail dot com
Operating system: FreeBSD
PHP version:      5.3CVS-2008-08-17 (CVS)
PHP Bug Type:     I18N and L10N related
Bug description:  Collator::getLocale crash

Description:
------------
[EMAIL PROTECTED] ~/php5]$ gdb -q sapi/cli/php
(gdb) r -r '$c = collator::create("EN-US-ODESSA"); 
var_dump($c->getLocale(Locale::VALID_LOCALE));'
Starting program: /usr/home/felipe/php5/sapi/cli/php -r '$c = 
collator::create("EN-US-ODESSA"); 
var_dump($c->getLocale(Locale::VALID_LOCALE));'
warning: Unable to get location for thread creation breakpoint: 
generic error
[New LWP 100136]
[New Thread 0xd4e000 (LWP 100136)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xd4e000 (LWP 100136)]
0x0000000000860215 in zend_object_store_get_object 
(zobject=0xd7b088, tsrm_ls=0x0) 
at /usr/home/felipe/php5/Zend/zend_objects_API.c:261
261             return 
EG(objects_store).object_buckets[handle].bucket.obj.object;
(gdb) bt
#0  0x0000000000860215 in zend_object_store_get_object 
(zobject=0xd7b088, tsrm_ls=0x0) 
at /usr/home/felipe/php5/Zend/zend_objects_API.c:261
#1  0x00000000005407c1 in zif_collator_get_locale (ht=1, 
return_value=0xd7b008, return_value_ptr=0x0, this_ptr=0xd7b088, 
return_value_used=1,
    tsrm_ls=0x0) 
at /usr/home/felipe/php5/ext/intl/collator/collator_locale.c:52
#2  0x0000000000863fe5 in zend_do_fcall_common_helper_SPEC 
(execute_data=0x10e8088, tsrm_ls=0xd456c0) at zend_vm_execute.h:315
#3  0x000000000086516d in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(execute_data=0x10e8088, tsrm_ls=0xd456c0) at zend_vm_execute.h:428
#4  0x0000000000862cdb in execute (op_array=0xd7bcc0, 
tsrm_ls=0xd456c0) at zend_vm_execute.h:104
#5  0x000000000081e1e8 in zend_eval_string (
    str=0x7fffffffea96 "$c = collator::create(\"EN-US-ODESSA\"); 
var_dump($c->getLocale(Locale::VALID_LOCALE));", retval_ptr=0x0,
    string_name=0xbcb87c "Command line code", tsrm_ls=0xd456c0) 
at /usr/home/felipe/php5/Zend/zend_execute_API.c:1112
#6  0x000000000081e410 in zend_eval_string_ex (
    str=0x7fffffffea96 "$c = collator::create(\"EN-US-ODESSA\"); 
var_dump($c->getLocale(Locale::VALID_LOCALE));", retval_ptr=0x0,
    string_name=0xbcb87c "Command line code", handle_exceptions=1, 
tsrm_ls=0xd456c0) 
at /usr/home/felipe/php5/Zend/zend_execute_API.c:1147
#7  0x00000000008d3853 in main (argc=3, argv=0x7fffffffe818) 
at /usr/home/felipe/php5/sapi/cli/php_cli.c:1169


Reproduce code:
---------------
Reproducible with:
ext/intl/tests/collator_create.phpt
ext/intl/tests/collator_get_locale.phpt


-- 
Edit bug report at http://bugs.php.net/?id=45843&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45843&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45843&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45843&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45843&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45843&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45843&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45843&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45843&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45843&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45843&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45843&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45843&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45843&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45843&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45843&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45843&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45843&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45843&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45843&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45843&r=mysqlcfg

Reply via email to