ID: 49166 User updated by: s dot daudell at boldwebservices dot com Reported By: s dot daudell at boldwebservices dot com Status: Bogus Bug Type: Sockets related Operating System: Windows XP Pro PHP Version: 5.3.0 New Comment:
it was indeed using a different php.ini got it all working now. thanks Previous Comments: ------------------------------------------------------------------------ [2009-08-05 22:59:28] [email protected] You probably have a different php.ini being loaded for the CLI. Regardless this isn't a bug and a support issue. ------------------------------------------------------------------------ [2009-08-05 22:48:50] s dot daudell at boldwebservices dot com ok here is something i found. when i run this script in a web browser, it validates to bool(true), which explains why it is loaded in phpinfo() yet when i run this script in the command prompt, it returns bool(false) what would be causing the cmd to not access that extension? ------------------------------------------------------------------------ [2009-08-05 21:47:00] [email protected] It's not really loaded if the function doesn't exist, try this: <?php var_dump(extension_loaded("sockets")); ?> ------------------------------------------------------------------------ [2009-08-05 15:29:05] s dot daudell at boldwebservices dot com i commented out all of my other code and inserted only the script you provided. it still results in a fatal error. I check the phpinfo() output once again, still says sockets support enabled. ------------------------------------------------------------------------ [2009-08-05 14:32:29] [email protected] It's quite impossible for this function not exist if the sockets extensions is really loaded. Please check again. And this time with this script: <?php error_reporting(E_ALL); $foo = socket_create(AF_INET, SOCK_STREAM, 0); ?> ------------------------------------------------------------------------ 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/49166 -- Edit this bug report at http://bugs.php.net/?id=49166&edit=1
