From: SVN Migration Date: Mon, 7 Mar 2005 13:10:10 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_0_6_1'. X-Git-Tag: RELEASE_0_6_1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2d49e093e1a0af865c108583c8c327903fe28051;p=m6w6%2Fext-http This commit was manufactured by cvs2svn to create tag 'RELEASE_0_6_1'. --- diff --git a/funcsummary.php b/funcsummary.php deleted file mode 100644 index b819827..0000000 --- a/funcsummary.php +++ /dev/null @@ -1,93 +0,0 @@ -%s\n", highlight_string($m[1], true)); -} -function mf($f, &$m) -{ - return preg_match_all( - '/\/\* *\{\{\{ *proto (.*?)(\n|$)(.*?)PHP_(?:FUNCTION|METHOD)\((.*?)\)/s', - file_get_contents($f), $m); -} -function ff($t) -{ - $t = preg_replace('/^ \* /m', '', trim($t, "*/ \n")); - $t = preg_replace_callback('/(\<\?php.*?\?\>)/s', 'hl', $t); - $t = nl2br(preg_replace('/\n *\* */', "\n", $t)); - $t = preg_replace('/(\
\n)+\(\
\n)+/', '

', $t);
-    $t = preg_replace('/(\
\n)+\<\/pre\>(\
\n)+/', '

', $t); - return sprintf('

%s

', ltrim($t, ' *')); -} - -$preface = <<<_PREFACE - - - Function Summary of ext/%s - - - -_PREFACE; - -$footer = <<<_FOOTER -

Generated at: %s

- - - -_FOOTER; - -if ($_SERVER['argc'] < 2) { - die("Usage: {$_SERVER['argv'][0]} [ ...]\n"); -} - -printf($preface, basename(getcwd())); - -foreach (array_slice($_SERVER['argv'], 1) as $f) { - if (mf($f, $m)) { - printf("

%s

\n", basename($f)); - foreach ($m[1] as $i => $p) { - printf("

%s

\n%s\n", - str_replace(', ', '_', $m[4][$i]), $p, ff($m[3][$i])); - } - print "
\n"; - } -} - -printf($footer, date('r')); -?> - diff --git a/http.dsp b/http.dsp deleted file mode 100644 index 2795527..0000000 --- a/http.dsp +++ /dev/null @@ -1,141 +0,0 @@ -# Microsoft Developer Studio Project File - Name="http" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=http - Win32 Release_TS -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "http.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "http.mak" CFG="http - Win32 Release_TS" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "http - Win32 Release_TS" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE "http - Win32 Debug_TS" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "http - Win32 Release_TS" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release_TS" -# PROP BASE Intermediate_Dir "Release_TS" -# PROP BASE Ignore_Export_Lib 0 -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release_TS" -# PROP Intermediate_Dir "Release_TS" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "..\.." /I "..\..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\..\TSRM" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPILE_DL_HTTP" /D ZTS=1 /YX /FD /c -# ADD CPP /nologo /Gd /MD /W3 /GX /O2 /I "..\.." /I "..\..\main" /I "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D ZEND_DEBUG=0 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HTTP_EXPORTS" /D "COMPILE_DL_HTTP" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_HTTP=1 /D HTTP_HAVE_CURL=1 /FR /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0x406 /d "NDEBUG" -# ADD RSC /l 0x406 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts.lib /nologo /dll /machine:I386 -# ADD LINK32 libcurl.lib ssleay32.lib libeay32.lib zlib.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts.lib wsock32.lib /nologo /dll /machine:I386 /out:"..\..\Release_TS/php_http.dll" /libpath:"..\..\Release_TS" /libpath:"..\..\Release_TS_Inline" /libpath:"..\..\..\php_build\curl\lib" - -!ELSEIF "$(CFG)" == "http - Win32 Debug_TS" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Debug_TS" -# PROP BASE Intermediate_Dir "Debug_TS" -# PROP BASE Ignore_Export_Lib 0 -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Debug_TS" -# PROP Intermediate_Dir "Debug_TS" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPILE_DL_HTTP" /D ZTS=1 /YX /FD /c -# ADD CPP /nologo /MDd /W3 /GX /O2 /I "..\.." /I "..\..\main" /I "..\..\Zend" /I "..\..\..\bindlib_w32" /I "..\..\TSRM" /D ZEND_DEBUG=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HTTP_EXPORTS" /D "COMPILE_DL_HTTP" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_HTTP=1 /D HTTP_HAVE_CURL=1 /YX /FD /c -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 -# ADD BASE RSC /l 0x406 /d "NDEBUG" -# ADD RSC /l 0x406 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts.lib /nologo /dll /machine:I386 -# ADD LINK32 libcurl.lib ssleay32.lib libeay32.lib zlib.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib php4ts_debug.lib wsock32.lib /nologo /dll /machine:I386 /out:"..\..\Debug_TS/http.dll" /libpath:"..\..\Debug_TS" /libpath:"..\..\..\php_build\curl\lib" - -!ENDIF - -# Begin Target - -# Name "http - Win32 Release_TS" -# Name "http - Win32 Debug_TS" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=.\http.c -# End Source File -# Begin Source File - -SOURCE=.\http_api.c -# End Source File -# Begin Source File - -SOURCE=.\http_curl_api.c -# End Source File -# Begin Source File - -SOURCE=.\http_functions.c -# End Source File -# Begin Source File - -SOURCE=.\http_methods.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=.\php_http.h -# End Source File -# Begin Source File - -SOURCE=.\php_http_api.h -# End Source File -# Begin Source File - -SOURCE=.\php_http_curl_api.h -# End Source File -# Begin Source File - -SOURCE=.\php_http_std_defs.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project diff --git a/tests/001_date.phpt b/tests/001_date.phpt deleted file mode 100644 index 7bd8b64..0000000 --- a/tests/001_date.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -http_date() with timestamp ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -Thu, 01 Jan 1970 00:00:01 GMT -Fri, 13 Feb 2009 23:31:30 GMT diff --git a/tests/002_date.phpt b/tests/002_date.phpt deleted file mode 100644 index f518188..0000000 --- a/tests/002_date.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -http_date() without timestamp ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -bool(true) -%d -%s, %d %s %d %d:%d:%d GMT -%s, %d %s %d %d:%d:%d GMT diff --git a/tests/010_abs_uri.phpt b/tests/010_abs_uri.phpt deleted file mode 100644 index 67b1beb..0000000 --- a/tests/010_abs_uri.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -http_absolute_uri() with relative paths ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -http://localhost/page -http://localhost/with/some/path/ diff --git a/tests/011_abs_uri.phpt b/tests/011_abs_uri.phpt deleted file mode 100644 index fa4db1b..0000000 --- a/tests/011_abs_uri.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -http_absolute_uri() with proto ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -https://localhost/sec -ftp://localhost/pub -http://localhost/ diff --git a/tests/020_redirect.phpt b/tests/020_redirect.phpt deleted file mode 100644 index b849ced..0000000 --- a/tests/020_redirect.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -http_redirect() with params ---SKIPIF-- - ---FILE-- - 1, 'b' => 2)); -?> ---EXPECTF-- -Status: 302 -Content-type: text/html -X-Powered-By: PHP/%s -Location: http://localhost/redirect?a=1&b=2 - -Redirecting to http://localhost/redirect?a=1&b=2. - diff --git a/tests/021_redirect.phpt b/tests/021_redirect.phpt deleted file mode 100644 index e8b2cca..0000000 --- a/tests/021_redirect.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -http_redirect() with session ---SKIPIF-- - ---FILE-- - 1), true); -?> ---EXPECTF-- -Status: 302 -Content-type: text/html -X-Powered-By: PHP/%s -Set-Cookie: PHPSESSID=%s; path=/ -Expires: %s -Cache-Control: %s -Pragma: %s -Location: http://localhost/redirect?a=1&PHPSESSID=%s diff --git a/tests/022_redirect.phpt b/tests/022_redirect.phpt deleted file mode 100644 index bd9a23d..0000000 --- a/tests/022_redirect.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -http_redirect() permanent ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Status: 301 -Content-type: text/html -X-Powered-By: PHP/%s -Location: http://localhost/redirect - -Redirecting to http://localhost/redirect. - diff --git a/tests/030_send_data.phpt b/tests/030_send_data.phpt deleted file mode 100644 index 8db55cf..0000000 --- a/tests/030_send_data.phpt +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -http_send_data() ---SKIPIF-- - ---FILE-- - ---EXPECTREGEX-- -.+\s+.+\s+(abc|[123abc]{,100000}) \ No newline at end of file diff --git a/tests/040_chunked_decode.phpt b/tests/040_chunked_decode.phpt deleted file mode 100644 index 9f333f3..0000000 --- a/tests/040_chunked_decode.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -http_chunked_decode() ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -string(9) "aba -cabcd" diff --git a/tests/050_split_response.phpt b/tests/050_split_response.phpt deleted file mode 100644 index cf99af3..0000000 --- a/tests/050_split_response.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -http_split_response() ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -array ( - 0 => - array ( - 'Status' => '200 Ok', - 'Content-Type' => 'text/plain', - 'Content-Language' => 'de-AT', - 'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT', - ), - 1 => 'Hallo Du!', -) \ No newline at end of file diff --git a/tests/051_parse_headers.phpt b/tests/051_parse_headers.phpt deleted file mode 100644 index 39afa55..0000000 --- a/tests/051_parse_headers.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -http_parse_headers() ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -Array -( - [Host] => localhost - [Nospace] => here - [Muchspace] => there - [Empty] => - [Empty2] => - [Folded] => one - two - three -) \ No newline at end of file