Tiger66639 / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Handler: str_replace missing parameter #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Line 190 of Handler.php uses str_replace incorrectly:
Warning: Wrong parameter count for str_replace() in 
/usr/local/lib/php/Xinc/Gui/Handler.php 
on line 190
Call Stack
#   Time    Memory  Function    Location
1   0.0002  85392   {main}( )   ../handler.php:0
2   0.0956  2612008 Xinc_Gui_Handler->view( )   ../handler.php:12
3   0.0956  2612008 Xinc_Gui_Handler->_getRequestPath( )    ../Handler.php:200
4   0.0956  2612008 str_replace ( ) ../Handler.php:190

The line in question:
             $path = str_replace('?' . $_SERVER['QUERY_STRING'], $_SERVER['REQUEST_URI']);

str_replace docs:
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int 
&$count ] )

Original issue reported on code.google.com by kwie...@gmail.com on 14 Mar 2008 at 6:50

GoogleCodeExporter commented 9 years ago

Original comment by arnos...@gmail.com on 14 Mar 2008 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by arnos...@gmail.com on 15 Mar 2008 at 9:28