zend_parse_parameters seg faults on string input.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

  In the PHP file, I have written:
  helloworld("hello, world")

where helloworld is in an extension. Now, I use zend_parse_parameters() to parse input as follows:

  char* hstr = NULL, *wstr = NULL;
  argc = ZEND_NUM_ARGS();
  if (zend_parse_parameters(argc TSRMLS_CC, "ss", &hstr, &wstr)
		== FAILURE)
		return;

I get a seg-fault when I run the PHP file. However, it works for one argument.

  Am I missing something?

Thanks,
Deepak

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux