Changes between Initial Version and Version 1 of Ticket #20187, comment 5
- Timestamp:
- 03/07/2012 01:18:07 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20187, comment 5
initial v1 1 1 Technically there is no difference but extension_loaded('sockets') looks like a better coding practice to me. 2 2 3 The actual issue, however, is not detecting the availability of php_sockets. The issue is, wherever dl() is not available, the if-check silently fails and therefore it does not set $mod_sockets's value to FALSE even though it should.3 The actual issue, however, isn't detecting the availability of php_sockets. The issue is, wherever dl() is not available, the if-check silently fails and therefore it does not set $mod_sockets's value to FALSE even though it should. 4 4 5 5 dl() is deprecated in PHP 5.3 and completely removed in PHP6. Either we can completely remove the part where it tries to load the extension in the runtime, or we can just check the availability of dl() and prevent unexpected behaviors.