#6678 [Com]: Different behaviour of arithmetic operations on Linux PHP and Windows PHP

2004-10-19 Thread linux at hotmail dot com
 ID:   6678
 Comment by:   linux at hotmail dot com
 Reported By:  info at emre dot de
 Status:   Closed
 Bug Type: Unknown/Other Function
 Operating System: Windows 2000  SuSE Linux
 PHP Version:  4.0.2
 New Comment:

http://www.cafepress.com/fearpenguin
http://www.cafepress.com/tux_vs_msn
http://www.cafepress.com/chixdiglinux
http://www.cafepress.com/design4living


Previous Comments:


[2000-10-15 11:25:46] [EMAIL PROTECTED]

Your problem is probably due to the size of the numeric datatype (which
is system dependant). The number that you're passing is actually too big
(ie: over 2 billion).

See http://www.php.net/manual/language.types.php




[2000-09-12 05:41:28] info at emre dot de

html 
body 
? 

/* Fuction to turn an integer into an ip address */

function int2ip($int) 
  { 
// There are 4 bytes to handle, so let´s go for it 
for ($i=0 ; $i  4 ; $i++) {
 
 // Let´s leave only the first 8 bits, kill the rest and assign the
value to an array element
  $bytes[$i] = $int  0xFF; 
   
 // Now move the remaining bits to the right and go on with the
next byte ... 
  $int = $int  8;
   
} 

// The array containing the bits is joined to a string, the bytes
separated by a dot 
$ip = $bytes[3].$bytes[2].$bytes[1].$bytes[0]; 
 
   return ($ip); 
  } 

print int2ip(3232235648); 

/* 
  Result should be 192.168.0.128. On WAMP it works fine,
  on LAMP it doesn´t.
  Maybe this one´s not bug but I´m too dump - still this wrong
behaviour
  has been verfied on several Linux systems running Apache and PHP.
  The correct one has been verified on three Windows systems running
  Apache and PHP (latest)
*/

? 
/body 
/html 




-- 
Edit this bug report at http://bugs.php.net/?id=6678edit=1


#4754 [Com]: Linux-OracleDB - defunc ---enable-sigchild -problems with persistent conect.

2004-10-19 Thread linux at hotmail dot com
 ID:   4754
 Comment by:   linux at hotmail dot com
 Reported By:  jl_villar at hotmail dot com
 Status:   Closed
 Bug Type: Oracle related
 Operating System: Linux RedHat 6.1
 PHP Version:  4.0.0 Release
 New Comment:

http://www.cafepress.com/fearpenguin
http://www.cafepress.com/tux_vs_msn
http://www.cafepress.com/chixdiglinux
http://www.cafepress.com/design4living


Previous Comments:


[2000-08-08 22:33:27] [EMAIL PROTECTED]

closed due to missing feedback



[2000-06-02 11:31:18] thies at cvs dot php dot net

please try to reproduce the behaviour *without* using
oracle-connections.

just try to see if there's a difference in apache's behaviour when u
use --enable-sigchild 
opposed not using it!




[2000-06-01 13:10:08] jl_villar at hotmail dot com

In Spanish:
--
En Linux,con Oracle 8.1.6, PHP4.0.0 y Apache 1.3.12
para evitar procesos defunc, recompile PHP con --enable-sigchild
Se solucionaron los procesos defunc pero aparecen problemas con las
conexiones persistentes de apache.
Algunas veces, no cierra el socket cuando deja de recibir información
por un tiempo especificado en el httpd.conf
KeepAliveTimeout(normalmente 15 segundos). No cierra el socket
transcurrido este tiempo pero tampoco lo atiende, lo que da lugar que
algunos navegadores se muestren bloqueados en la posición de read del
socket. 
Como no este socket no esta cerrado se mantien esperando de manera
indefinida.

Gracias
JL






-- 
Edit this bug report at http://bugs.php.net/?id=4754edit=1