Browse Source

haxe.Http fix for PHP versions older than 5.2.1

Franco Ponticelli 17 years ago
parent
commit
b770a49190
1 changed files with 3 additions and 0 deletions
  1. 3 0
      std/haxe/Http.hx

+ 3 - 0
std/haxe/Http.hx

@@ -75,6 +75,9 @@ class Http {
 		#elseif (neko || php)
 		#elseif (neko || php)
 		cnxTimeout = 10;
 		cnxTimeout = 10;
 		#end
 		#end
+		#if php
+		noShutdown = ! untyped __call__('function_exists', 'stream_socket_shutdown');
+		#end
 	}
 	}
 
 
 	public function setHeader( header : String, value : String ) {
 	public function setHeader( header : String, value : String ) {