Jason Greene
cd4954b7b5
Fix WS
24 years ago
Jason Greene
494d2d0d5a
Fix build on win32
24 years ago
Jason Greene
3c9c83640f
Fixed bug where NULL specified in sec was not waiting infinately as it should
Fixed bug where socket_select was not producing an error message on error
Fixed bug where -1 was getting returned instead of FALSE in socket_recv(),
socket_send(), socket_sendto(), and socket_select()
24 years ago
Jason Greene
165a97c90f
Sockets Rework Patch 3 of 3
Nuked all fd code
Rewrote socket_select to use arrays instead of the fd code
(This has the side-effect of fixing quite a few bugs)
24 years ago
Jason Greene
e228b16885
Socket Rework Patch 2
Redesigned socket_recv() as outlined on php-dev
Modified socket_last_error() to no longer clear the error
Added socket_clear_error()
Fixed socket_set_nonblock()
Added socket_set_block()
Fixed a proto
Saved 1 byte of RAM : )
24 years ago
Jason Greene
7d7b1ae9b5
Style Improvement
24 years ago
Jason Greene
c6c7380d88
Style mismatch: Jon's catch
24 years ago
Jason Greene
03baef7a3d
Patch 1 of 3 (2 in 3 still in progress) of sockets rework
Abstracted string -> ipv4 value conversion which unifies all functions
Standardized Host Lookups
Fixed Broken host error values
Fixed error detection in sendmsg
Added some safety struct zeroing
Modified bind to consitentlyy use sockaddr_storage(not just for AF_UNIX)
#Note this could potentially break the build on other platforms, as I have
#not tested them yet (Will soon though)
24 years ago
Jason Greene
0a2438b057
Fix parse string
(Since arg6 is initialized at null this still catches the wrong param condition)
24 years ago
Frank M. Kromann
d036b10062
Fixing release and debug build on Win32
24 years ago
Jon Parise
539114339c
Use socklen_t (instead of int) where appropriate.
24 years ago
Jon Parise
d7523c883b
Because php_network.h includes <sys/socket.h>, it must be included after
_XPG4_2 is defined.
This fixes the build under Solaris 8.
24 years ago
Markus Fischer
98220d2a82
- Correct some protos.
24 years ago
Sterling Hughes
4afe145a10
Changed proto via Georg Richter's request.
24 years ago
Stig Venaas
6e1878b0fc
Added some consts for arguments in network.c declarations. Moved
php_sockaddr_storage to php_network.h and added check for struct
sockaddr_storage
24 years ago
Jason Greene
2807e1742f
Add myself as a maintainer
24 years ago
Sebastian Bergmann
38933514e1
Update headers.
24 years ago
Hartmut Holzgraefe
7a3c3e85ad
proto fix
24 years ago
Jason Greene
49c3d762ee
Fix broken format string in socket_recv -> zend_parse_parameters
Rewrote socket_setopt and socket_getopt to be cleaner
@Added support for SO_RCVTIMEO and SO_SNDTIMEO to ext/sockets (Jason)
24 years ago
foobar
f1397d5339
Unified the configure messages.
24 years ago
Thies C. Arntzen
3ee263e348
i'm sure i had this compile before;-)
24 years ago
Thies C. Arntzen
5a67b295e6
fix a crash in socket_connect (if hostname was not resolvable)
initialize max_fd in various fdset function
fix error checking in _read and _write
24 years ago
Markus Fischer
abe67fdb83
Unified error/warning messages.
24 years ago
Markus Fischer
80a58cd23c
WS
24 years ago
Markus Fischer
6cc12e1450
Fix #14020 and some minor leaks.
24 years ago
Jon Parise
f8fb5e5d98
Include <sys/socket.h> for 'struct sockaddr'.
# This fixes my FreeBSD build.
24 years ago
Markus Fischer
dceb1e7814
Remove prototype warnings under linux.
24 years ago
Daniel Beulshausen
54ca6f05b1
nuke remaining warnings
24 years ago
Daniel Beulshausen
d0433b6d1c
make this function static
24 years ago
Daniel Beulshausen
2fba036202
- convert to use new zend_parse_parameters API
- unify errormessages + add socket_last_error()
- fix linklibrary under windows
- some streamlining
24 years ago
Markus Fischer
963226543b
Fix possible leak.
24 years ago
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
24 years ago
Sterling Hughes
1c7e920a9e
make this work under OSX
25 years ago
Sascha Schumann
bfef93878c
Force proper alignment of php_sockaddr_storage. Sparc will throw
a SIGBUS, when accessing the family part of a char-aligned structure.
25 years ago
Jeroen van Wolffelaar
6cfba2a3ea
2nd phase in back-substitution those macro's
I've got pretty much everything now...
25 years ago
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
25 years ago
Wez Furlong
ad72c064bc
doh\!
25 years ago
Wez Furlong
c6a957e012
Fix silly bugs
25 years ago
Daniel Beulshausen
75aa3cfc51
fix fcntl
25 years ago
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
25 years ago
Jason Greene
54905782b6
Prevent incorrect warning message from occuring on an EOF of socket_read.
25 years ago
Jason Greene
9fe46a52d4
Much better fix for non forte compilers on Solaris.
Removed pragma hack.
Renamed socket struct to bsd_socket.
25 years ago
Sterling Hughes
580d41b3af
Break the entire PHP build
# just kidding, noet work :)
25 years ago
Rasmus Lerdorf
4d11d90880
Track down a few more functions that don't check for 0 args and use
faster mechanism
25 years ago
Rasmus Lerdorf
8c497f05c4
We don't consistently check for args passed to functions that don't
take any args. In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks. There are still lots of cases out there.
25 years ago
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
25 years ago
Zeev Suraski
c43806f415
Zend compatibility patch
25 years ago
Daniel Beulshausen
69a4760b48
fix recently discovered api flaws
- nuke first parameter to socket_select (detemine it ourself)
- swap parameters for socket_fd_set, socket_fd_clear & socket_fd_isset
- allow to pass an array of sockets to socket_fd_set + socket_fd_clear
25 years ago
Rasmus Lerdorf
721c562e2a
Fix a couple of build warnings
25 years ago
foobar
531ec3623f
No need for this constant.
25 years ago