|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-07-21 15:52 UTC] iarenuno at eteo dot mondragon dot edu
Description: ------------ I've taken Pierangelo Masarati's patches (PAT18 and PAT19) and have updated them to apply to 5.2.3 cleanly (as of today) and fixed a memory leak. In addition to it, I've added 4 test scripts based on the examples from Pierangelo, with a few modifications by me. I have tested this patch by building PHP with OpenLDAP 2.2.23 libraries (under Debian Sarge) and run the test scripts against both OpenLDAP 2.2.23 slapd server and MS Active Directory (runnning under W2K3 in W2K3 functional mode). OpenLDAP passes all the tests except passwordPolicy control extension (because it doesn't support it) and MS Active Directory passes only the pagedResult test (because it doesn't support the rest of the implemented controls for which tests exist). The patch is available at: http://www.eteo.mondragon.edu/descargas/php-ldap/php-ext-ldap-5.2.3.diff.txt.gz Could you please add this to the next stable PHP release? I badly need pagedResults control extension support in PHP :-) Saludos. I?aki. Patchespaged-ldap-5.3 (last revision 2011-04-28 23:00 UTC by bryant dot david at gmail dot com)api-rename.patch (last revision 2010-11-04 21:16 UTC by jeanseb at au-fil-du dot net) php-trunk_ldap-pagination.patch (last revision 2010-11-04 20:47 UTC by jeanseb at au-fil-du dot net) ext-ldap-review.patch (last revision 2010-08-04 15:54 UTC by jeanseb at au-fil-du dot net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 00:00:01 2025 UTC |
Quick review of the patch shows this part: switch (myargcount) { + case 4: + convert_to_string_ex(&cookie); + lcookie.bv_val = Z_STRVAL_PP(&cookie); + lcookie.bv_len = Z_STRLEN_PP(&cookie); + /* fallthru */ Why is it done this way? Shouldn't "rl|bz" in zend_parse_parameters be changed to "rl|bs"? I assume the current form will cause trouble with references and stuff which can't be converted to string (object without __toString() method) Didn't do a deeper review. As we're rolling 5.3.3 very soon i'd keep it out there for now.I've attached a patch solving this. In ldap_ctrl_paged_results_resp the 3rd and 4th args are string & int passed by reference. I've defined those args as zval ("zz"), should I change this to string & int "si" too ?