[PHP-CVS] cvs: php-src /ext/ftp/tests 001.phpt 002.phpt 003.phpt cert.pem server.inc skipif.inc
nlopess Sun Nov 19 18:38:11 2006 UTC Modified files: /php-src/ext/ftp/tests 001.phpt 002.phpt 003.phpt cert.pem server.inc skipif.inc Log: MFB http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/001.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/ftp/tests/001.phpt diff -u /dev/null php-src/ext/ftp/tests/001.phpt:1.2 --- /dev/null Sun Nov 19 18:38:11 2006 +++ php-src/ext/ftp/tests/001.phpt Sun Nov 19 18:38:11 2006 @@ -0,0 +1,36 @@ +--TEST-- +FTP login +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +array(4) { + [0]=> + string(55) "214-There is help available for the following commands:" + [1]=> + string(5) " USER" + [2]=> + string(5) " HELP" + [3]=> + string(15) "214 end of list" +} +array(1) { + [0]=> + string(39) "214 Syntax: HELP [ ] " +} +bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/002.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/ftp/tests/002.phpt diff -u /dev/null php-src/ext/ftp/tests/002.phpt:1.2 --- /dev/null Sun Nov 19 18:38:11 2006 +++ php-src/ext/ftp/tests/002.phpt Sun Nov 19 18:38:11 2006 @@ -0,0 +1,38 @@ +--TEST-- +FTP login (SSL) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +array(4) { + [0]=> + string(55) "214-There is help available for the following commands:" + [1]=> + string(5) " USER" + [2]=> + string(5) " HELP" + [3]=> + string(15) "214 end of list" +} +array(1) { + [0]=> + string(39) "214 Syntax: HELP [ ] " +} +bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/003.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/ftp/tests/003.phpt diff -u /dev/null php-src/ext/ftp/tests/003.phpt:1.2 --- /dev/null Sun Nov 19 18:38:11 2006 +++ php-src/ext/ftp/tests/003.phpt Sun Nov 19 18:38:11 2006 @@ -0,0 +1,43 @@ +--TEST-- +FTP cwd +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +string(1) "/" +bool(true) +string(6) "/mydir" +bool(true) +string(11) "/xpto/mydir" +bool(true) +string(5) "/xpto" +bool(true) +string(1) "/" +bool(true) http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/cert.pem?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/ftp/tests/cert.pem diff -u /dev/null php-src/ext/ftp/tests/cert.pem:1.2 --- /dev/null Sun Nov 19 18:38:11 2006 +++ php-src/ext/ftp/tests/cert.pem Sun Nov 19 18:38:11 2006 @@ -0,0 +1,48 @@ +-BEGIN CERTIFICATE REQUEST- +MIIBmzCCAQQCAQAwWzELMAkGA1UEBhMCUFQxCzAJBgNVBAgTAkx4MQswCQYDVQQH +EwJMeDEcMBoGA1UEChMTQSBtaW5oYSBlbXByZXNhLCBTQTEUMBIGA1UECxMLUEhQ +IFFBIFRlYW0wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAM9mfEOSYwXf58ch +4NyO1QOU1XMfquz8OVpvMUITABLAevZpeQn6vZPHNyXHFQC0QC8scydK1rAYd2U+ +9K2aPub6ioMjYyjPpAE07l9EAAPUEBlqqsziB/wT8QjWkByyJEkYu+o0Wyjokhfn +BMPvm52wLWUx9nvUeNDCftnKg1wxAgMBAAGgADANBgkqhkiG9w0BAQQFAAOBgQDD +s1FeqPxnF2bWj8/dG8MyPaRfOAMVz1UsCZUciXIVG5LSIvR2qnMC3iEYt3s13sEq +z8VJlNHa8nniE+VFNv093yIu+PlWXMEvb5y5EFqP2AYq3RAT+SJsSxGqIdzPZiKY +INaktLCZmQ/E1v7/4hFzVRq9ydJI82DVS1nv282Whw== +-END CERTIFICATE REQUEST- +-BEGIN CERTIFICATE- +MIIC4zCCAkygAwIBAgIBADANBgkqhkiG9w0BAQQFADBbMQswCQYDVQQGEwJQVDEL +MAkGA1UECBMCTHgxCzAJBgNVBAcTAkx4MRwwGgYDVQQKExNBIG1pbmhhIGVtcHJl +c2EsIFNBMRQwEgYDVQQLEwtQSFAgUUEgVGVhbTAeFw0wNjExMTkxODIzNTNaFw0w +NzExMTkxODIzNTNaMFsxCzAJBgNVBAYTAlBUMQswCQYDVQQIEwJMeDELMAkGA1UE +BxMCTHgxHDAaBgNVBAoTE0EgbWluaGEgZW1wcmVzYSwgU0ExFDASBgNVBAsTC1BI +UCBRQSBUZWFtMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPZnxDkmMF3+fH +IeDcjtUDlNVzH6rs/DlabzFCEwASwHr2aXkJ+r2TxzclxxUAtEAvLHMnStawGHdl +PvStmj7m+oqDI2Moz6QBNO5fRAAD1BAZaqrM4gf8E/EI1pAcsiRJGLvqNFso6JIX +5wTD75udsC1lMfZ71HjQwn7ZyoNcMQIDAQABo4G2MIGzMB0GA1UdDgQWBBTIga5L +q+Ub1SWXgNZRYCpq3c8Z+jCBgwYDVR0jBHwweoAUyIGuS6vlG9Ull4DWUWAqat3P +GfqhX6RdMFsxCzAJBgNVBAYTAlBUMQswCQYDVQQIEwJMeDELMAkGA1UEBxMCTHgx +HDAaBgNVBAoTE0EgbWluaGEgZW1wcmVzYSwgU0ExFDASBgNVBAsTC1BIUCBRQSBU +ZWFtggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAe6AA8aC3KDI8 +smd+7XWjaTSp1Q0uMkEZ2PEBzif2I1aPPqw1CQykJ1iDdC/8PJ1yEIezloP2XQoZ +NjTaCO+uubay03ncoPTZvDUwExN9BYFAYgc2z3tLMHYbA7kM2sIbKys7ZQegLibr +TSKYQOBeYA/FB9GHECJGU3zBRvYi+Og= +-END CERTIFICATE- +-BEGIN RSA PRIVATE KEY- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,928762DB6DE222AD + +oOxNUBX0wrqmRqb3IEZMogc1bnVm6JoW6YFjGfHNcIz0jS7UPDhUFDR26y0dYujL +LEgxOcYo8ItvGcXSRbs+3W7lISbosgkB0DOaKx5jVmOGwUVRergUUSY8rbf93FtP +27CEvAfsU6do5HmlJ34mYZW1k+onCznlJXJkupQ5jmiily3GwEdr/5mMIVOmXQ6p +xWkxHySDKyVbR0v4JY3SJLRBuhgofYNG5155PiqZ7KwYY4Aw60eVgINsvJCF9/8b +kEj+lecHbBdAf7N82320Ga+F+VeFnUl0gWFjoIF9UFCO80+7ZvIGdGlyPkr4zMvt +TsC1snJQdHg+IlT3sGayYrQANpTG6GPYhn3KEvK5aqq+bPEe5lija0gw34jbPCo+ +TjHR76lToxzubGZODyyF/rjl5KwUbqTCNuv1PX1jTx7n7sCbu+KHpqXMhTHLKtby ++Wh7WAfsVrbIW+P85/mkfhPbPZ2621f9cyStdFGgWU4dHdD00HIGOgAJvUSbC2Au +oVUoKf2818t1s9aA4ptog04sNi+Ixu+z+3yYNLZj51j4ZX3KuXxLIiQvlvFQ8LQi +RHGQk3u2W3iNtDKKUQjMPaB2FlVtC7FmtHBCpRmos6ld240DDyucqMdIDTMaqV0+ +sL4X+LIeBM/hP/IquRTuQBHBmgjkN4845ihTUJOanyKx605ANq/roHzXrbIxhR5p +pcJLCBMLMWgdOCJMZRavSq04iXeNfP6Mk/joVpHS62Ljdfc94BBLfsOKOErA20Nq +lfvbZqy2tI5IIDoq05S8FU0DYNqq/hyrv9Udo
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/ftp/tests 001.phpt 002.phpt 003.phpt cert.pem server.inc skipif.inc
nlopess Sun Nov 19 18:37:28 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/ftp/tests 001.phpt 002.phpt 003.phpt cert.pem server.inc skipif.inc Log: new tests. what a crazy idea... http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/001.phpt?view=markup&rev=1.1 Index: php-src/ext/ftp/tests/001.phpt +++ php-src/ext/ftp/tests/001.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/002.phpt?view=markup&rev=1.1 Index: php-src/ext/ftp/tests/002.phpt +++ php-src/ext/ftp/tests/002.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/003.phpt?view=markup&rev=1.1 Index: php-src/ext/ftp/tests/003.phpt +++ php-src/ext/ftp/tests/003.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/cert.pem?view=markup&rev=1.1 Index: php-src/ext/ftp/tests/cert.pem +++ php-src/ext/ftp/tests/cert.pem http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/server.inc?view=markup&rev=1.1 Index: php-src/ext/ftp/tests/server.inc +++ php-src/ext/ftp/tests/server.inc http://cvs.php.net/viewvc.cgi/php-src/ext/ftp/tests/skipif.inc?view=markup&rev=1.1 Index: php-src/ext/ftp/tests/skipif.inc +++ php-src/ext/ftp/tests/skipif.inc -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/standard/tests/strings pack.phpt
iliaa Sun Nov 19 18:31:22 2006 UTC Modified files: /php-src/ext/standard/tests/strings pack.phpt Log: MFB: pack()/unpack() tests http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/pack.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/strings/pack.phpt diff -u /dev/null php-src/ext/standard/tests/strings/pack.phpt:1.2 --- /dev/null Sun Nov 19 18:31:22 2006 +++ php-src/ext/standard/tests/strings/pack.phptSun Nov 19 18:31:22 2006 @@ -0,0 +1,379 @@ +--TEST-- +Generic pack()/unpack() tests +--FILE-- + +--EXPECT-- +Array +( +[1] => h +) +Array +( +[1] => hello world +) +"hello" +Array +( +[1] => 129 +) +Array +( +[1] => 127 +) +Array +( +[1] => 255 +) +Array +( +[1] => 127 +) +Array +( +[1] => 4 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 0 +) +Array +( +[1] => -1000 +) +Array +( +[1] => -64434 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483648 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483646 +) +Array +( +[1] => -1 +) +Array +( +[1] => -2147483648 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483646 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483648 +) +Array +( +[1] => -3 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 1 +) +Array +( +[1] => 0 +) +Array +( +[1] => 64536 +) +Array +( +[1] => 1102 +) +Array +( +[1] => 1 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483646 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483648 +) +Array +( +[1] => h +) +Array +( +[1] => hello world +) +Array +( +[1] => -127 +) +Array +( +[1] => 127 +) +Array +( +[1] => -1 +) +Array +( +[1] => 127 +) +Array +( +[1] => 3 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 0 +) +Array +( +[1] => -1000 +) +Array +( +[1] => -64434 +) +Array +( +[1] => -65535 +) +Array +( +[1] => -2147483647 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483646 +) +Array +( +[1] => 0 +) +Array +( +[1] => -2147483648 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 1 +) +Array +( +[1] => 0 +) +Array +( +[1] => 64536 +) +Array +( +[1] => 1102 +) +Array +( +[1] => 1 +) +Array +( +[1] => 32767 +) +Array +( +[1] => -1 +) +Array +( +[1] => 0 +) +Array +( +[1] => -1000 +) +Array +( +[1] => 1102 +) +Array +( +[1] => 1 +) +Array +( +[1] => 65534 +) +Array +( +[1] => 1 +) +Array +( +[1] => 0 +) +Array +( +[1] => 64536 +) +Array +( +[1] => 1102 +) +Array +( +[1] => 1 +) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/strings pack.phpt
iliaa Sun Nov 19 18:31:07 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/standard/tests/strings pack.phpt Log: pack()/unpack() tests http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/pack.phpt?view=markup&rev=1.1 Index: php-src/ext/standard/tests/strings/pack.phpt +++ php-src/ext/standard/tests/strings/pack.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/standard pack.c /ext/standard/tests/strings bug38770.phpt
iliaa Sun Nov 19 18:21:50 2006 UTC Modified files: /php-src/ext/standard/tests/strings bug38770.phpt /php-src/ext/standard pack.c Log: MFB: Fixed bug #38770 (unpack() broken with longs on 64 bit machines). http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug38770.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/strings/bug38770.phpt diff -u /dev/null php-src/ext/standard/tests/strings/bug38770.phpt:1.2 --- /dev/null Sun Nov 19 18:21:50 2006 +++ php-src/ext/standard/tests/strings/bug38770.phptSun Nov 19 18:21:50 2006 @@ -0,0 +1,25 @@ +--TEST-- +Bug #38770 (unpack() broken with longs on 64 bit machines) +--FILE-- + +--EXPECT-- +Array +( +[1] => -3 +) +Array +( +[1] => -3 +) +Array +( +[1] => -3 +) +Done http://cvs.php.net/viewvc.cgi/php-src/ext/standard/pack.c?r1=1.62&r2=1.63&diff_format=u Index: php-src/ext/standard/pack.c diff -u php-src/ext/standard/pack.c:1.62 php-src/ext/standard/pack.c:1.63 --- php-src/ext/standard/pack.c:1.62Sun Feb 19 18:19:33 2006 +++ php-src/ext/standard/pack.c Sun Nov 19 18:21:50 2006 @@ -15,7 +15,7 @@ | Author: Chris Schneider <[EMAIL PROTECTED]> | +--+ */ -/* $Id: pack.c,v 1.62 2006/02/19 18:19:33 iliaa Exp $ */ +/* $Id: pack.c,v 1.63 2006/11/19 18:21:50 iliaa Exp $ */ #include "php.h" @@ -752,14 +752,16 @@ case 'i': case 'I': { - long v; + long v = 0; int issigned = 0; if (type == 'i') { issigned = input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80; - } + } else if (sizeof(long) > 4 && (input[inputpos + machine_endian_long_map[3]] & 0x80) == 0x80) { + v = ~INT_MAX; +} - v = php_unpack(&input[inputpos], sizeof(int), issigned, int_map); + v |= php_unpack(&input[inputpos], sizeof(int), issigned, int_map); add_assoc_long(return_value, n, v); break; } @@ -770,7 +772,7 @@ case 'V': { int issigned = 0; int *map = machine_endian_long_map; - long v; + long v = 0; if (type == 'l') { issigned = input[inputpos + (machine_little_endian ? 3 : 0)] & 0x80; @@ -780,7 +782,11 @@ map = little_endian_long_map; } - v = php_unpack(&input[inputpos], 4, issigned, map); + if (sizeof(long) > 4 && (input[inputpos + machine_endian_long_map[3]] & 0x80) == 0x80) { + v = ~INT_MAX; + } + + v |= php_unpack(&input[inputpos], 4, issigned, map); add_assoc_long(return_value, n, v); break; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src(PHP_5_2) / NEWS /ext/standard pack.c /ext/standard/tests/strings bug38770.phpt
iliaa Sun Nov 19 18:20:48 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/standard/tests/strings bug38770.phpt Modified files: /php-srcNEWS /php-src/ext/standard pack.c Log: Fixed bug #38770 (unpack() broken with longs on 64 bit machines). http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.367&r2=1.2027.2.547.2.368&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.367 php-src/NEWS:1.2027.2.547.2.368 --- php-src/NEWS:1.2027.2.547.2.367 Fri Nov 17 11:40:52 2006 +++ php-src/NEWSSun Nov 19 18:20:48 2006 @@ -74,6 +74,8 @@ (Dmitry) - Fixed bug #39090 (DirectoryFilterDots doxygen docs and example is wrong). (Marcus) +- Fixed bug #38770 (unpack() broken with longs on 64 bit machines). (Ilia, + David Soria Parra). - Fixed bug #38698 (for some keys cdbmake creates corrupted db and cdb can't read valid db). (Marcus) - Fixed bug #38680 (Added missing handling of basic types in json_decode). http://cvs.php.net/viewvc.cgi/php-src/ext/standard/pack.c?r1=1.57.2.5&r2=1.57.2.5.2.1&diff_format=u Index: php-src/ext/standard/pack.c diff -u php-src/ext/standard/pack.c:1.57.2.5 php-src/ext/standard/pack.c:1.57.2.5.2.1 --- php-src/ext/standard/pack.c:1.57.2.5Sun Feb 26 10:49:50 2006 +++ php-src/ext/standard/pack.c Sun Nov 19 18:20:48 2006 @@ -15,7 +15,7 @@ | Author: Chris Schneider <[EMAIL PROTECTED]> | +--+ */ -/* $Id: pack.c,v 1.57.2.5 2006/02/26 10:49:50 helly Exp $ */ +/* $Id: pack.c,v 1.57.2.5.2.1 2006/11/19 18:20:48 iliaa Exp $ */ #include "php.h" @@ -753,14 +753,16 @@ case 'i': case 'I': { - long v; + long v = 0; int issigned = 0; if (type == 'i') { issigned = input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80; - } + } else if (sizeof(long) > 4 && (input[inputpos + machine_endian_long_map[3]] & 0x80) == 0x80) { + v = ~INT_MAX; +} - v = php_unpack(&input[inputpos], sizeof(int), issigned, int_map); + v |= php_unpack(&input[inputpos], sizeof(int), issigned, int_map); add_assoc_long(return_value, n, v); break; } @@ -771,7 +773,7 @@ case 'V': { int issigned = 0; int *map = machine_endian_long_map; - long v; + long v = 0; if (type == 'l') { issigned = input[inputpos + (machine_little_endian ? 3 : 0)] & 0x80; @@ -781,7 +783,11 @@ map = little_endian_long_map; } - v = php_unpack(&input[inputpos], 4, issigned, map); + if (sizeof(long) > 4 && (input[inputpos + machine_endian_long_map[3]] & 0x80) == 0x80) { + v = ~INT_MAX; + } + + v |= php_unpack(&input[inputpos], 4, issigned, map); add_assoc_long(return_value, n, v); break; } http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug38770.phpt?view=markup&rev=1.1 Index: php-src/ext/standard/tests/strings/bug38770.phpt +++ php-src/ext/standard/tests/strings/bug38770.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/mysql php_mysql.c
georg Sun Nov 19 12:10:19 2006 UTC Modified files: /php-src/ext/mysql php_mysql.c Log: added unicode support for ext/mysql http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?r1=1.226&r2=1.227&diff_format=u Index: php-src/ext/mysql/php_mysql.c diff -u php-src/ext/mysql/php_mysql.c:1.226 php-src/ext/mysql/php_mysql.c:1.227 --- php-src/ext/mysql/php_mysql.c:1.226 Sun Oct 8 13:34:22 2006 +++ php-src/ext/mysql/php_mysql.c Sun Nov 19 12:10:19 2006 @@ -18,7 +18,7 @@ +--+ */ -/* $Id: php_mysql.c,v 1.226 2006/10/08 13:34:22 bjori Exp $ */ +/* $Id: php_mysql.c,v 1.227 2006/11/19 12:10:19 georg Exp $ */ /* TODO: * @@ -473,6 +473,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) { char *user=NULL, *passwd=NULL, *host_and_port=NULL, *socket=NULL, *tmp=NULL, *host=NULL; + int user_len, passwd_len, host_len; char *hashed_details=NULL; int hashed_details_length, port = MYSQL_PORT; int client_flags = 0; @@ -480,7 +481,6 @@ #if MYSQL_VERSION_ID <= 32230 void (*handler) (int); #endif - zval **z_host=NULL, **z_user=NULL, **z_passwd=NULL, **z_new_link=NULL, **z_client_flags=NULL; zend_bool free_host=0, new_link=0; long connect_timeout; @@ -521,95 +521,22 @@ user = MySG(default_user); passwd = MySG(default_password); - switch(ZEND_NUM_ARGS()) { - case 0: /* defaults */ - break; - case 1: { - if (zend_get_parameters_ex(1, &z_host)==FAILURE) { - MYSQL_DO_CONNECT_RETURN_FALSE(); - } - } - break; - case 2: { - if (zend_get_parameters_ex(2, &z_host, &z_user)==FAILURE) { - MYSQL_DO_CONNECT_RETURN_FALSE(); - } - convert_to_string_ex(z_user); - user = Z_STRVAL_PP(z_user); - } - break; - case 3: { - if (zend_get_parameters_ex(3, &z_host, &z_user, &z_passwd) == FAILURE) { - MYSQL_DO_CONNECT_RETURN_FALSE(); - } - convert_to_string_ex(z_user); - convert_to_string_ex(z_passwd); - user = Z_STRVAL_PP(z_user); - passwd = Z_STRVAL_PP(z_passwd); - } - break; - case 4: { - if (!persistent) { - if (zend_get_parameters_ex(4, &z_host, &z_user, &z_passwd, &z_new_link) == FAILURE) { - MYSQL_DO_CONNECT_RETURN_FALSE(); - } - convert_to_string_ex(z_user); - convert_to_string_ex(z_passwd); - convert_to_boolean_ex(z_new_link); - user = Z_STRVAL_PP(z_user); - passwd = Z_STRVAL_PP(z_passwd); - new_link = Z_BVAL_PP(z_new_link); - } - else { - if (zend_get_parameters_ex(4, &z_host, &z_user, &z_passwd, &z_client_flags) == FAILURE) { - MYSQL_DO_CONNECT_RETURN_FALSE(); - } - convert_to_string_ex(z_user); - convert_to_string_ex(z_passwd); - convert_to_long_ex(z_client_flags); - user = Z_STRVAL_PP(z_user); - passwd = Z_STRVAL_PP(z_passwd); - client_flags = Z_LVAL_PP(z_client_flags); - } - } - break; - case 5: { - if (z