Browse Source
- Added backward compability wrapper "php_parse_date()".
- Added backward compability wrapper "php_parse_date()".
- Changed WDDX extension to use new date parsing code. - Removed all remnants to the old parser. #- I hope that I didn't break the .dsp's...PHP-5.1
16 changed files with 22 additions and 1315 deletions
-
1ext/date/TODO
-
16ext/date/php_date.c
-
3ext/date/php_date.h
-
3ext/standard/Makefile.frag
-
2ext/standard/config.m4
-
2ext/standard/config.w32
-
2ext/standard/datetime.c
-
1161ext/standard/parsedate.y
-
28ext/standard/php_parsedate.h
-
2ext/wddx/wddx.c
-
1genfiles
-
1netware/BisonExtStandard.bat
-
4netware/phplib.mak
-
4win32/build/Makefile
-
48win32/php5dll.dsp
-
59win32/php5dllts.dsp
@ -1,5 +1,4 @@ |
|||
- Port over my 200 test cases to .phpt format. |
|||
- Write an error handler for unexpected characters while parsing dates. |
|||
- Remove old parsedate.* code from ext/standard |
|||
- Move all date/time related functions from ext/standard to ext/date |
|||
- Move all date/time related tests from ext/standard/tests to ext/data/tests |
|||
1161
ext/standard/parsedate.y
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,28 +0,0 @@ |
|||
/* |
|||
+----------------------------------------------------------------------+ |
|||
| PHP Version 5 | |
|||
+----------------------------------------------------------------------+ |
|||
| Copyright (c) 1997-2004 The PHP Group | |
|||
+----------------------------------------------------------------------+ |
|||
| This source file is subject to version 3.0 of the PHP license, | |
|||
| that is bundled with this package in the file LICENSE, and is | |
|||
| available through the world-wide-web at the following url: | |
|||
| http://www.php.net/license/3_0.txt. | |
|||
| If you did not receive a copy of the PHP license and are unable to | |
|||
| obtain it through the world-wide-web, please send a note to | |
|||
| license@php.net so we can mail you a copy immediately. | |
|||
+----------------------------------------------------------------------+ |
|||
| Author: Sascha Schumann <sascha@schumann.cx> | |
|||
+----------------------------------------------------------------------+ |
|||
*/ |
|||
|
|||
/* $Id$ */ |
|||
|
|||
#ifndef PHP_PARSEDATE_H |
|||
#define PHP_PARSEDATE_H |
|||
|
|||
#include <time.h> |
|||
|
|||
PHPAPI time_t php_parse_date(char *p, time_t *now); |
|||
|
|||
#endif |
|||
@ -1,3 +1,2 @@ |
|||
@echo off |
|||
|
|||
bison --output=ext\standard\parsedate.c -v -d -p phplib ext\standard\parsedate.y |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue