Changeset 847 in svn for trunk/utils.c


Ignore:
Timestamp:
2012-03-26T10:46:53Z (3 years ago)
Author:
Xuefer
Message:

fix build for <=PHP_5_2, optimize dirname call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r846 r847  
    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.