Req #40510 [Asn->Tbd]: Add multicast support in sockets.c
Edit report at http://bugs.php.net/bug.php?id=40510&edit=1 ID: 40510 Updated by: cataphr...@php.net Reported by:lew dot payne at gmail dot com Summary:Add multicast support in sockets.c -Status: Assigned +Status: To be documented Type: Feature/Change Request Package:*General Issues Operating System: FreeBSD 6.2-REL PHP Version:5.2.1 -Assigned To:cataphract +Assigned To: Block user comment: N Private report: N New Comment: Implemented for trunk; to be considered to 5.3 after 5.3.6 release. Previous Comments: [2011-03-14 01:08:31] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revision&revision=309198 Log: - Added multicast support to the sockets extension (bug #40510). [2011-03-03 01:02:29] cataphr...@php.net Chris, PHP 5.2 is dead, adding this feature to it is out of question. Adding it to PHP 5.3 depends on the release master, but probably won't be possible due to the need to keep binary compatibility. [2011-03-02 11:08:52] chrisw at networkm dot co dot uk Judging by the amount of Google space taken up by people trying to do this (including myself) I am very much in favour of moving this issue forward ASAP. I also agree with the IPv6 support (to a point), but if this is to be added to PHP 5.2.x I would suggest it may not be necessary to implement at this stage. Moving forward, shouldn't we be encouraging the use of 5.3.x for new/upgrading users? In which case, I would suggest that adding full IPv6 support against 5.2 might be a waste of time - I would imagine there would be a lot of work involved in adding full IPv6 multicast/anycast support, whereas the existing supplied patch would presumably only require minor modifications to bring it into line with the current 5.2 releases. I am all in favour of fully supporting IPv6 in 5.3, but I also believe that in the interests of speed it would be useful to have this, simpler, IPv4 multicast support in 5.2. Maybe this would be considered an un-productive approach, but it's just a thought... [2011-03-02 10:43:32] cataphr...@php.net I understand you're frustrated with the lack of progress in this issue, but I assigned this to myself because I intend to implement this feature soon (read: in a matter of weeks, not years). [2011-03-02 05:01:20] lew dot payne at gmail dot com This ticket was opened four years ago, at which time I supplied source code that I had modified to work on FreeBSD (the original only worked on Linux). If you want to "seriously consider" IPV6 support, please seriously consider finally integrating this patch, and then waiting another four years before considering IPV6. Yes, I'm being sarcastic... but with good reason. I was basically given the runaround, via email with whomever looks at these bug reports, to the point where I simply decided it's easier to *not* contribute anything. I find it both irritating and ironic that, four years later, there is yet another suggestion on delaying the commitment of this patch (e.g., IPV6). And you think government is discouraging and bureaucratic? 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 http://bugs.php.net/bug.php?id=40510 -- Edit this bug report at http://bugs.php.net/bug.php?id=40510&edit=1
Req #54243 [Opn]: Shorter syntax for closures
Edit report at http://bugs.php.net/bug.php?id=54243&edit=1 ID: 54243 User updated by:anil at saog dot net Reported by:anil at saog dot net Summary:Shorter syntax for closures Status: Open Type: Feature/Change Request -Package:Scripting Engine problem +Package:*General Issues -Operating System: +Operating System: * PHP Version:Irrelevant Block user comment: N Private report: N New Comment: Changed package Previous Comments: [2011-03-13 16:09:36] anil at saog dot net Description: Current closure syntax makes the code a little bit unreadable and also shortening the syntax of a handy thing like this seems more logical. Test script: --- As of now "closure" syntax is: function ($a) use($b){ return $a == $b; } Passing a closure to any other scope: $myObject = new myObject (); $myObject->MyMethod('abc', function ($a) use($b){ return $a == $b; }); Expected result: My short syntax candidate is: $([arg1],[arg2],[arg...], {[method body]}, [scope_var1],[scope_var2],[scope_var...]) So passing with use token syntax: $myObject = new myObject (); $myObject->MyMethod('abc', $($a, {$a == $b}, $b)); Without "use" token: $myObject = new myObject (); $myObject->MyMethod('abc', $($a, {$a == $b})); With more than one method argument: $myObject = new myObject (); $myObject->MyMethod('abc', $($a,$k,$p,{$a == $b})); -- Edit this bug report at http://bugs.php.net/bug.php?id=54243&edit=1
[PHP-BUG] Req #54243 [NEW]: Shorter syntax for closures
From: Operating system: PHP version: Irrelevant Package: Scripting Engine problem Bug Type: Feature/Change Request Bug description:Shorter syntax for closures Description: Current closure syntax makes the code a little bit unreadable and also shortening the syntax of a handy thing like this seems more logical. Test script: --- As of now "closure" syntax is: function ($a) use($b){ return $a == $b; } Passing a closure to any other scope: $myObject = new myObject (); $myObject->MyMethod('abc', function ($a) use($b){ return $a == $b; }); Expected result: My short syntax candidate is: $([arg1],[arg2],[arg...], {[method body]}, [scope_var1],[scope_var2],[scope_var...]) So passing with use token syntax: $myObject = new myObject (); $myObject->MyMethod('abc', $($a, {$a == $b}, $b)); Without "use" token: $myObject = new myObject (); $myObject->MyMethod('abc', $($a, {$a == $b})); With more than one method argument: $myObject = new myObject (); $myObject->MyMethod('abc', $($a,$k,$p,{$a == $b})); -- Edit bug report at http://bugs.php.net/bug.php?id=54243&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54243&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54243&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54243&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54243&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54243&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54243&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54243&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54243&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54243&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54243&r=support Expected behavior: http://bugs.php.net/fix.php?id=54243&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54243&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54243&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54243&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54243&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=54243&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54243&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54243&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54243&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54243&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54243&r=mysqlcfg
Bug #54242 [Csd]: dba_insert returns true if key already exists
Edit report at http://bugs.php.net/bug.php?id=54242&edit=1 ID: 54242 Updated by: fel...@php.net Reported by:marc-bennewitz at arcor dot de Summary:dba_insert returns true if key already exists Status: Closed Type: Bug Package:DBM/DBA related Operating System: Linux PHP Version:5.3.5 Assigned To:felipe Block user comment: N Private report: N New Comment: Okay, I'll check it. Previous Comments: [2011-03-13 15:51:35] marc-bennewitz at arcor dot de Much thanks for the very fast fix ! But on a little bit more tests I found similar problems with the 'inifile' handler -> returns true on second insert without a warning PS: not tested the other handlers yet. [2011-03-13 15:23:24] fel...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. The bug has been fixed in trunk, I'll merge it in 5.3 branch when the 5.3.6 got released. Thanks. [2011-03-13 15:21:59] fel...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=309172 Log: - Fixed bug #54242 (dba_insert returns true if key already exists) [2011-03-13 15:11:36] marc-bennewitz at arcor dot de Description: dba_insert returns true if key already exists using handler 'flatfile' Test script: --- $path = __DIR__ . '/test.dba'; $mode = 'c'; $handler = 'flatfile'; @unlink($path); $dba = dba_open($path, $mode, $handler); // first insert success var_dump(dba_insert('key', 'value', $dba)); // second insert failed -> already exists var_dump(dba_insert('key', 'value', $dba)); Expected result: bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(false) Actual result: -- bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(true) -- Edit this bug report at http://bugs.php.net/bug.php?id=54242&edit=1
Bug #54242 [Csd]: dba_insert returns true if key already exists
Edit report at http://bugs.php.net/bug.php?id=54242&edit=1 ID: 54242 User updated by:marc-bennewitz at arcor dot de Reported by:marc-bennewitz at arcor dot de Summary:dba_insert returns true if key already exists Status: Closed Type: Bug Package:DBM/DBA related Operating System: Linux PHP Version:5.3.5 Assigned To:felipe Block user comment: N Private report: N New Comment: Much thanks for the very fast fix ! But on a little bit more tests I found similar problems with the 'inifile' handler -> returns true on second insert without a warning PS: not tested the other handlers yet. Previous Comments: [2011-03-13 15:23:24] fel...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. The bug has been fixed in trunk, I'll merge it in 5.3 branch when the 5.3.6 got released. Thanks. [2011-03-13 15:21:59] fel...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=309172 Log: - Fixed bug #54242 (dba_insert returns true if key already exists) [2011-03-13 15:11:36] marc-bennewitz at arcor dot de Description: dba_insert returns true if key already exists using handler 'flatfile' Test script: --- $path = __DIR__ . '/test.dba'; $mode = 'c'; $handler = 'flatfile'; @unlink($path); $dba = dba_open($path, $mode, $handler); // first insert success var_dump(dba_insert('key', 'value', $dba)); // second insert failed -> already exists var_dump(dba_insert('key', 'value', $dba)); Expected result: bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(false) Actual result: -- bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(true) -- Edit this bug report at http://bugs.php.net/bug.php?id=54242&edit=1
Bug #54242 [Opn->Csd]: dba_insert returns true if key already exists
Edit report at http://bugs.php.net/bug.php?id=54242&edit=1 ID: 54242 Updated by: fel...@php.net Reported by:marc-bennewitz at arcor dot de Summary:dba_insert returns true if key already exists -Status: Open +Status: Closed Type: Bug Package:DBM/DBA related Operating System: Linux PHP Version:5.3.5 -Assigned To: +Assigned To:felipe Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. The bug has been fixed in trunk, I'll merge it in 5.3 branch when the 5.3.6 got released. Thanks. Previous Comments: [2011-03-13 15:21:59] fel...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=309172 Log: - Fixed bug #54242 (dba_insert returns true if key already exists) [2011-03-13 15:11:36] marc-bennewitz at arcor dot de Description: dba_insert returns true if key already exists using handler 'flatfile' Test script: --- $path = __DIR__ . '/test.dba'; $mode = 'c'; $handler = 'flatfile'; @unlink($path); $dba = dba_open($path, $mode, $handler); // first insert success var_dump(dba_insert('key', 'value', $dba)); // second insert failed -> already exists var_dump(dba_insert('key', 'value', $dba)); Expected result: bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(false) Actual result: -- bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(true) -- Edit this bug report at http://bugs.php.net/bug.php?id=54242&edit=1
[PHP-BUG] Bug #54242 [NEW]: dba_insert returns true if key already exists
From: Operating system: Linux PHP version: 5.3.5 Package: DBM/DBA related Bug Type: Bug Bug description:dba_insert returns true if key already exists Description: dba_insert returns true if key already exists using handler 'flatfile' Test script: --- $path = __DIR__ . '/test.dba'; $mode = 'c'; $handler = 'flatfile'; @unlink($path); $dba = dba_open($path, $mode, $handler); // first insert success var_dump(dba_insert('key', 'value', $dba)); // second insert failed -> already exists var_dump(dba_insert('key', 'value', $dba)); Expected result: bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(false) Actual result: -- bool(true) PHP Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 Warning: dba_insert(key): Key already exists in /mnt/workspace/zf2/cache/tests/test_dba.php on line 15 bool(true) -- Edit bug report at http://bugs.php.net/bug.php?id=54242&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54242&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54242&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54242&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54242&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54242&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54242&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54242&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54242&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54242&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54242&r=support Expected behavior: http://bugs.php.net/fix.php?id=54242&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54242&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54242&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54242&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54242&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=54242&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54242&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54242&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54242&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54242&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54242&r=mysqlcfg
[PHP-BUG] Bug #54241 [NEW]: PHP fails with newer fileinfo magic files
From: Operating system: PHP version: 5.3.6RC3 Package: Filesystem function related Bug Type: Bug Bug description:PHP fails with newer fileinfo magic files Description: PHP fails if one use the magic file shipped with file 5.05. The reason is that newer version(s) of file use libmagic version unsupported by the one bundled with PHP Test script: --- file("/tmp/test.jpg")); ?> Expected result: string(26) "image/jpeg; charset=binary" Actual result: -- Warning: finfo::finfo(): Failed to load magic database at '/usr/share/misc/magic.mgc'. in /var/www/localhost/htdocs/fileinfo.php on line 2 Warning: finfo::file(): The invalid fileinfo object. in /var/www/localhost/htdocs/fileinfo.php on line 3 bool(false) -- Edit bug report at http://bugs.php.net/bug.php?id=54241&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54241&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54241&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54241&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54241&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54241&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54241&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54241&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54241&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54241&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54241&r=support Expected behavior: http://bugs.php.net/fix.php?id=54241&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54241&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54241&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54241&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54241&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=54241&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54241&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54241&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54241&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54241&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54241&r=mysqlcfg