Edit report at https://bugs.php.net/bug.php?id=65542&edit=1
ID: 65542 Comment by: azq2 at ya dot ru Reported by: Azq2 at ya dot ru Summary: zend_parse_parameters return string length == 0 Status: Feedback Type: Bug Package: Unknown/Other Function PHP Version: 5.5.3 Block user comment: N Private report: N New Comment: String. $db -> connect("127.0.0.2", "root", "qwerty", "test", 1); Previous Comments: ------------------------------------------------------------------------ [2013-08-24 20:59:51] fel...@php.net What data type have you used for store the string length? ------------------------------------------------------------------------ [2013-08-24 20:56:55] Azq2 at ya dot ru Description: ------------ I have this code in my extension: if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssssl|bl", &addr, &addr_length, &user, &user_length, &password, &password_length, &db, &db_length, &port, &persistent, &flags) != SUCCESS) WRONG_PARAM_COUNT; and i call from php: $db -> connect("127.0.0.2", "root", "qwerty", "test", 1); But... addr_length and user_length equals as zero O_O But addr and user not empty and contains my values... o_O ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65542&edit=1