Bug #76669 [NEW]: Fatal error: Uncaught Error: Call to undefined function socket_create()

From: Date: Thu, 26 Jul 2018 17:00:47 +0000
Subject: Bug #76669 [NEW]: Fatal error: Uncaught Error: Call to undefined function socket_create()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216478@lists.php.net to get a copy of this message
From: michael_r_monteith at yahoo dot com Operating system: Windows 7 Pro PHP version: 7.2.8 Package: Sockets related Bug Type: Bug Bug description:Fatal error: Uncaught Error: Call to undefined function socket_create() Description: ------------ $ php -v PHP 7.2.8 (cli) (built: Jul 18 2018 10:03:03) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); error: Fatal error: Uncaught Error: Call to undefined function socket_create() in C:\Users\mmonteith\Desktop\Location Scanning\telnetserver.php:4 Stack trace: #0 {main} thrown in C:\Users\mmonteith\Desktop\Location Scanning\telnetserver.php on line 4 Test script: --------------- <?php $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_close($sock); ?> Actual result: -------------- Should complete with no error and allow me to work with the open socket. -- Edit bug report at https://bugs.php.net/bug.php?id=76669&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76669&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76669&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76669&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76669&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76669&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76669&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76669&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76669&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76669&r=support Expected behavior: https://bugs.php.net/fix.php?id=76669&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76669&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76669&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76669&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76669&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76669&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76669&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76669&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76669&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76669&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76669&r=mysqlcfg

« previous php.bugs (#216478) next »