I was helping a friend with some C++ sockets and he sent me this source code…

1
2
3
4
5
6
7
8
...
char test[100];
int $i = 0;
 
do {
        iResult = recv(ClientSocket, recvbuf, recvbuflen, 0);
        test[$i] = recvbuf[0];
...

Does it need any more words? :P (hint: PHP)