Explorar el Código

haxe.Http fix for PHP versions older than 5.2.1

Franco Ponticelli hace 17 años
padre
commit
b770a49190
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      std/haxe/Http.hx

+ 3 - 0
std/haxe/Http.hx

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