Bug #54328 [NEW]: $PHP_PREFIX/include/php/ext/standard/php_smart_str.h has error

From: Date: Mon, 21 Mar 2011 02:21:53 +0000
Subject: Bug #54328 [NEW]: $PHP_PREFIX/include/php/ext/standard/php_smart_str.h has error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159655@lists.php.net to get a copy of this message
From:             
Operating system: Windows & Linux
PHP version:      5.3.6
Package:          Compile Failure
Bug Type:         Bug
Bug description:$PHP_PREFIX/include/php/ext/standard/php_smart_str.h has error

Description:
------------
in the file $PHP_PREFIX/include/php/ext/standard/php_smart_str.h ,line 52,

should have a pointer conversion.

now the code is below:

#define SMART_STR_DO_REALLOC(d, what) \
        (d)->c = SMART_STR_REALLOC((d)->c, (d)->a + 1, (what))

but any extensions include it cann't be compiled before change the code
above 
like this, no matter the compiler is visual studio(2005 or 2008) or gcc:

#define SMART_STR_DO_REALLOC(d, what) \
        (d)->c = (char*) SMART_STR_REALLOC((d)->c, (d)->a + 1, (what))

everytime I change it myself.But event the newest PHP 5.3.6, the pointer 
conversion is still absent.


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



Thread (2 messages)

« previous php.bugs (#159655) next »