ID:               49166
 Updated by:       [email protected]
 Reported By:      s dot daudell at boldwebservices dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Sockets related
 Operating System: Windows XP Pro
 PHP Version:      5.3.0
 New Comment:

You probably have a different php.ini being loaded for the CLI.

Regardless this isn't a bug and a support issue.


Previous Comments:
------------------------------------------------------------------------

[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);

?>

------------------------------------------------------------------------

[2009-08-05 08:05:48] s dot daudell at boldwebservices dot com

As i mentioned, sockets are enabled, the extension shows up as loaded,
in the WAMP interface, in phpinfo(), and in php.ini

However when the function is called, it results in a fatal error. This
same script worked fine in 5.2.6

I was installing my software on a new machine with the newer version of
PHP, following my same setup procedures that worked before, and now it
doesnt work.

------------------------------------------------------------------------

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

Reply via email to