Changeset 9579c77 in git for utils.c


Ignore:
Timestamp:
2012-03-26T10:46:53Z (8 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
bfb351b
Parents:
e5943a1
Message:

fix build for <=PHP_5_2, optimize dirname call

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@847 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils.c

    re5943a1 r9579c77  
    970970
    971971#ifndef ZEND_ENGINE_2_3
    972 size_t zend_dirname(char *path, size_t len) /* {{{ */
    973 {
     972#include "ext/standard/php_string.h"
     973size_t xc_dirname(char *path, size_t len) /* {{{ */
     974{
     975#ifdef ZEND_ENGINE_2
     976    return php_dirname(path, len);
     977#else
    974978    php_dirname(path, len);
    975979    return strlen(path);
    976 }
    977 /* }}} */
    978 
    979 long zend_atol(const char *str, int str_len) /* {{{ */
     980#endif
     981}
     982/* }}} */
     983
     984long xc_atol(const char *str, int str_len) /* {{{ */
    980985{
    981986    long retval;
Note: See TracChangeset for help on using the changeset viewer.