#49166 [Bgs]: called to undefined function socket_create
| From: | s dot daudell at boldwebservices dot com | Date: | Wed, 05 Aug 2009 23:09:04 +0000 |
| Subject: | #49166 [Bgs]: called to undefined function socket_create | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140704@lists.php.net to get a copy of this message | ||
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] scottmac@php.net
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] jani@php.net
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] jani@php.net
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