Compare Values

From: Date: Sat, 26 Jun 2004 00:37:04 +0000
Subject: Compare Values
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-889@lists.php.net to get a copy of this message
Hi First: This are my first steps with PECL. Please don't laugh about so simple questions. (Hope this is the right list) I try to develop a WIN32 extension. Most of the functions work very well but i don't know how to code the following. In my php script i call a function compareValues(); wich is in the extension. The call looks like: $code = "47898729834928734779287349823"; if (compareValues($code)) print "result is true"; The first 10 characters must be the same as the pre defined value within the extension. I tried to read and understand the Zend API doc but the result is: 4 lines of code: PHP_FUNCTION(comparevalues) { char **arg1; } The fix value looks like so: char *FIXED(void) { return "4789872983"; ); I simply want to convert both values into a string to compare, but ever i use convert_to_string_ex() the apache server crashed. If print out arg1 i got only some crypted character that changed every browser refresh and not the given argument. Using PHP 4.3.7 Apache 1.x on Windows XP Pro and VS .NET I hope somebody understand my problem. Thanks for any help. Frank ____________ Virus checked by Antivirus-Profi-Paket Version: AVK 14.0.1217 from 19.06.2004 Virus news: www.antiviruslab.com

« previous php.pecl.dev (#889) next »