On 09/13/2013 10:42 AM, Nikita Popov wrote:
Commit:    96b1c2145c2cd5e616dea191648c2d73af0239c9
Author:    Nikita Popov <ni...@php.net>         Fri, 13 Sep 2013 18:45:02 +0200
Parents:   d2950ac2791cd03559a58e78f5cd626283b9ee4d
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=96b1c2145c2cd5e616dea191648c2d73af0239c9

Log:
Provide more macros for handling of interned strings

  * str_erealloc behaves like erealloc for normal strings, but will
    use emalloc+memcpy for interned strings.
  * str_estrndup behaves like estrndup for normal strings, but will
    not copy interned strings.
  * str_strndup behaves like zend_strndup for normal strings, but
    will not copy interned strings.
  * str_efree_rel behaves like efree_rel for normal strings, but
    will not free interned strings.
  * str_hash will return INTERNED_HASH for interned strings and
    compute it using zend_hash_func for normal strings.

Hi Nikita,

Running g++ on ext/intl/intl_convertcpp.cpp is failing for me with gcc 4.1.2 on
Oracle Linux 5.9 (equivalent to RHEL 5.9):

/home/cjones/php-src/Zend/zend_string.h: In function ‘char* 
_str_erealloc(char*, size_t, size_t)’:
/home/cjones/php-src/Zend/zend_string.h:77: error: invalid conversion from 
‘void*’ to ‘char*’
make: *** [ext/intl/intl_convertcpp.lo] Error 1

Can you have a look at it?

Chris

--
christopher.jo...@oracle.com  http://twitter.com/ghrd
Free PHP & Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to