Edit report at https://bugs.php.net/bug.php?id=65542&edit=1
ID: 65542 Updated by: johan...@php.net Reported by: Azq2 at ya dot ru Summary: zend_parse_parameters return string length == 0 -Status: Open +Status: Not a bug Type: Bug Package: Unknown/Other Function PHP Version: 5.5.3 Block user comment: N Private report: N New Comment: String lengths in PHP are int not uint. Still 0 would be an unlikely result, but string length handling works in a few hundred other functions flawlessly so it's likely a bug in your code. As this is no support forum please take this somewhere else. (The pecl-dev list might be a good place if you share a bit more code) Previous Comments: ------------------------------------------------------------------------ [2013-08-24 21:06:30] azq2 at ya dot ru But... password and db - is ok. ------------------------------------------------------------------------ [2013-08-24 21:05:08] Azq2 at ya dot ru char *addr, *user, *password, *db, *connect_id = NULL, *socket = NULL, *host = NULL; uint addr_length, user_length, password_length, db_length, connect_id_length = 0; ------------------------------------------------------------------------ [2013-08-24 21:04:09] fel...@php.net I mean what data type have you used for addr_length and user_length in your C code. ------------------------------------------------------------------------ [2013-08-24 21:02:17] azq2 at ya dot ru String. $db -> connect("127.0.0.2", "root", "qwerty", "test", 1); ------------------------------------------------------------------------ [2013-08-24 20:59:51] fel...@php.net What data type have you used for store the string length? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65542 -- Edit this bug report at https://bugs.php.net/bug.php?id=65542&edit=1