php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27137 ZE2 Crashes in non-debug mode (CLI only)
Submitted: 2004-02-03 21:19 UTC Modified: 2004-02-09 11:40 UTC
From: john@php.net Assigned: moriyoshi (profile)
Status: No Feedback Package: Reproducible crash
PHP Version: 5CVS-2004-02-03 (dev) OS: Redhat 8
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-02-03 21:19 UTC] john@php.net
Description:
------------
Although I can't trace it down exactly, something in the last day or so has caused PHP 5 HEAD to crash when using Smarty. Here is the backtrace:

#0  0x4201c207 in utf8_internal_loop_single () from /lib/i686/libc.so.6
#1  0x4201a89a in __gconv_transform_utf8_internal () from /lib/i686/libc.so.6
#2  0x42082a22 in mbrtowc () from /lib/i686/libc.so.6
#3  0x402ba8d4 in php_basename (s=0x80e2bd4 "index.tpl", len=9, suffix=0x0, 
    sufflen=0, p_ret=0xbfffad94, p_len=0xbfffad98, tsrm_ls=0x80de480)
    at /usr/include/wchar.h:320
#4  0x402baa36 in zif_basename (ht=1, return_value=0x80e81b4, this_ptr=0x0, 
    return_value_used=1, tsrm_ls=0x80de480)
    at /home/john/working/php-src/ext/standard/string.c:1149
#5  0x403436ba in zend_do_fcall_common_helper (execute_data=0xbfffb6b0, 
    opline=0x40b88a48, op_array=0x40baf6cc, tsrm_ls=0x80de480)
    at /home/john/working/php-src/Zend/zend_execute.c:2558
#6  0x40343867 in zend_do_fcall_handler (execute_data=0xbfffb6b0, 
    opline=0x40b88a48, op_array=0x40baf6cc, tsrm_ls=0x80de480)
    at /home/john/working/php-src/Zend/zend_execute.c:2700
#7  0x4033fb09 in execute (op_array=0x40baf6cc, tsrm_ls=0x80de480)
    at /home/john/working/php-src/Zend/zend_execute.c:1272
#8  0x4034342a in zend_do_fcall_common_helper (execute_data=0xbfffb830, 
    opline=0x8119c48, op_array=0x40baeb0c, tsrm_ls=0x80de480)
    at /home/john/working/php-src/Zend/zend_execute.c:2587
#9  0x4034378d in zend_do_fcall_by_name_handler (execute_data=0x656d616e, 
    opline=0x8119c48, op_array=0x40baeb0c, tsrm_ls=0x80de480)
    at /home/john/working/php-src/Zend/zend_execute.c:2669


It appears the recent UTF8 Changes have broken php_basename()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-04 04:31 UTC] moriyoshi@php.net
Is this reproducible with the following snippet?

<?php
var_dump(basename('index.tpl'));
?>

And what is the value of LC_CTYPE and LANG environment 
variables?

 [2004-02-09 11:40 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC