Underc0de - La Casa de los Informáticos

[In]Seguridad Informática => Wargames y retos => Mensaje iniciado por: fermino en Septiembre 29, 2014, 11:09:28 PM

Título: Find the bug #2 [PHP]
Publicado por: fermino en Septiembre 29, 2014, 11:09:28 PM
Éste es un error que cometen muchos que vienen de lenguajes como C#, por ejemplo.

Deben encontrar el error y enviarme un MP con la solución. Si no necesitan ejecutar el código para encontrar el error, ¡aún mejor!.


(http://i.imgur.com/TDOhUEJ.png)

Código (php) [Seleccionar]
<?php
static class 
TextUtils
{
public static function AgregarNuevaLinea($Texto)
{
return $Texto "\r\n";
}
}

echo TextUtils::AgregarNuevaLinea('Mi texto :)');
?>



Ganadores:

Título: Re:Find the bug #2 [PHP]
Publicado por: kid_goth en Septiembre 30, 2014, 12:22:49 AM
Resueltoooo...!!!! Muajajaja :3
Título: Re:Find the bug #2 [PHP]
Publicado por: fermino en Septiembre 30, 2014, 06:10:00 AM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Resueltoooo...!!!! Muajajaja :3

Agregado xDD
Título: Re:Find the bug #2 [PHP]
Publicado por: blackdrake en Septiembre 30, 2014, 06:19:51 AM
Enviada la solución, buen reto

Un saludo.
Título: Re:Find the bug #2 [PHP]
Publicado por: fermino en Septiembre 30, 2014, 06:31:08 AM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Enviada la solución, buen reto

Un saludo.

Listo ;)