Re: com php-src: Provide more macros for handling of interned strings: Zend/zend.h Zend/zend_API.c Zend/zend_builtin_functions.c Zend/zend_compile.c
Zend/zend_constants.c Zend/zend_execute.c Zend/zend_execute_API.c Zend/zend_language_scanner.c Zend/zend_language_scanner.l Zend/zend_operators.c
Zend/zend_string.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h

From: Date: Fri, 13 Sep 2013 23:27:22 +0000
Subject: Re: com php-src: Provide more macros for handling of interned strings: Zend/zend.h Zend/zend_API.c Zend/zend_builtin_functions.c Zend/zend_compile.c
Zend/zend_constants.c Zend/zend_execute.c Zend/zend_execute_API.c Zend/zend_language_scanner.c Zend/zend_language_scanner.l Zend/zend_operators.c
Zend/zend_string.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73191@lists.php.net to get a copy of this message
On 09/13/2013 10:42 AM, Nikita Popov wrote:
Commit:    96b1c2145c2cd5e616dea191648c2d73af0239c9
Author:    Nikita Popov <nikic@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.jones@oracle.com http://twitter.com/ghrd Free PHP & Oracle book: http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

« previous php.cvs (#73191) next »