From: <da...@us...> - 2003-08-04 23:46:31
|
Update of /cvsroot/binaryphp/binaryphp/functions/string In directory sc8-pr-cvs1:/tmp/cvs-serv16567/functions/string Modified Files: strpos.cpp Log Message: Fixed for gcc/g++3 compatibility. Index: strpos.cpp =================================================================== RCS file: /cvsroot/binaryphp/binaryphp/functions/string/strpos.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** strpos.cpp 3 Aug 2003 06:36:03 -0000 1.1 --- strpos.cpp 4 Aug 2003 23:46:25 -0000 1.2 *************** *** 1,7 **** php_var strpos(php_var haystack, php_var needle, php_var pos = 0) { ! php_var ret = 0; if((ret = haystack.container.find(needle.container, (int)pos)) != string::npos) ! return ret; else return((php_var)false); --- 1,7 ---- php_var strpos(php_var haystack, php_var needle, php_var pos = 0) { ! int ret; if((ret = haystack.container.find(needle.container, (int)pos)) != string::npos) ! return (php_var) ret; else return((php_var)false); |