Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | socket_write() should just use the standard socket error macro so that ↵ | Jason Greene | 2002-05-02 | 1 | -2/+1 |
| | | | | errors will be consistent if the macro ever changes | ||||
* | - Update protos for socket_read() and socket_write(). | Markus Fischer | 2002-05-01 | 1 | -3/+3 |
| | | | | | - Set last_error in socket_write(). | ||||
* | - Update protos for getpeer/getsock-name. | Markus Fischer | 2002-05-01 | 1 | -2/+2 |
| | |||||
* | Fix BYREF_FORCE that was not being read | Jason Greene | 2002-05-01 | 1 | -2/+2 |
| | | | | | Fix error message | ||||
* | - Rename setopt and getopt to set_option and get_option, provide alias. | Markus Fischer | 2002-05-01 | 1 | -6/+11 |
| | |||||
* | - Fix couple of problems with socket_create_pair(): | Markus Fischer | 2002-05-01 | 1 | -8/+12 |
| | | | | | | | | | | - Force fourth argument to be passed by reference - Since the argument is modified there is no need to force it to be an array since it's destroyed anyway - Only modify the argument if socketpair() was successfully - Fix string modified for error message message - Set global last_error when socketpair() fails | ||||
* | - Add SOMAXCONN constant. | Markus Fischer | 2002-05-01 | 1 | -0/+1 |
| | |||||
* | - WS fixes | Markus Fischer | 2002-05-01 | 1 | -9/+9 |
| | |||||
* | Changed socket_select to force reference copy, the older code would modify ↵ | Jason Greene | 2002-05-01 | 1 | -1/+5 |
| | | | | | | | | | | | | | all references @Fixed a bug in socket_select() that could cause unexpected behavior when using a statement @ like $w=$e=array($sock); @This change unfortunately prevents the use of constant values(NULL) for the socket array paramaters. @Instead use a temporary variable or an expression with the leftmost member being a temporary variable. @ ex. socket_select($w, $r, $e=NULL, 10); Also fix small memory leak. | ||||
* | - Forgot to update proto | Markus Fischer | 2002-04-30 | 1 | -1/+1 |
| | |||||
* | - Allow resetting the module global last_error too. | Markus Fischer | 2002-04-30 | 1 | -6/+9 |
| | |||||
* | - Fix WS and CS a bit | Markus Fischer | 2002-04-29 | 1 | -107/+108 |
| | |||||
* | - Store last errno in the module global 'last_error' implicitely | Markus Fischer | 2002-04-29 | 1 | -17/+44 |
| | | | | | | | | | | - Set the global 'last_error' explicitely for functions which can't return an error withing a single socket context (socket_create and socket_select) - Modified socket_last_error() to return global modules last error if no socket resource is given - Added a couple of more E_WARNING messages in case something goes foobar so the user isn't left alone in the dark. | ||||
* | Fix WS | Jason Greene | 2002-03-11 | 1 | -28/+28 |
| | |||||
* | Fix build on win32 | Jason Greene | 2002-03-09 | 1 | -6/+5 |
| | |||||
* | Fixed bug where NULL specified in sec was not waiting infinately as it should | Jason Greene | 2002-03-09 | 1 | -15/+38 |
| | | | | | | | 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() | ||||
* | Sockets Rework Patch 3 of 3 | Jason Greene | 2002-03-06 | 1 | -180/+67 |
| | | | | | | | 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) | ||||
* | Socket Rework Patch 2 | Jason Greene | 2002-03-06 | 1 | -17/+88 |
| | | | | | | | | | | | 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 : ) | ||||
* | Style Improvement | Jason Greene | 2002-03-05 | 1 | -2/+1 |
| | |||||
* | Style mismatch: Jon's catch | Jason Greene | 2002-03-04 | 1 | -1/+1 |
| | |||||
* | Patch 1 of 3 (2 in 3 still in progress) of sockets rework | Jason Greene | 2002-03-04 | 1 | -53/+51 |
| | | | | | | | | | | | | 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) | ||||
* | Fix parse string | Jason Greene | 2002-02-15 | 1 | -1/+1 |
| | | | | | (Since arg6 is initialized at null this still catches the wrong param condition) | ||||
* | Use socklen_t (instead of int) where appropriate. | Jon Parise | 2002-01-27 | 1 | -6/+7 |
| | |||||
* | Because php_network.h includes <sys/socket.h>, it must be included after | Jon Parise | 2002-01-27 | 1 | -2/+1 |
| | | | | | | | _XPG4_2 is defined. This fixes the build under Solaris 8. | ||||
* | - Correct some protos. | Markus Fischer | 2002-01-09 | 1 | -3/+3 |
| | |||||
* | Changed proto via Georg Richter's request. | Sterling Hughes | 2002-01-08 | 1 | -1/+1 |
| | |||||
* | Added some consts for arguments in network.c declarations. Moved | Stig Venaas | 2002-01-06 | 1 | -0/+1 |
| | | | | | | php_sockaddr_storage to php_network.h and added check for struct sockaddr_storage | ||||
* | Add myself as a maintainer | Jason Greene | 2001-12-14 | 1 | -1/+1 |
| | |||||
* | Update headers. | Sebastian Bergmann | 2001-12-11 | 1 | -2/+2 |
| | |||||
* | proto fix | Hartmut Holzgraefe | 2001-12-06 | 1 | -1/+1 |
| | |||||
* | Fix broken format string in socket_recv -> zend_parse_parameters | Jason Greene | 2001-12-06 | 1 | -48/+101 |
| | | | | | | Rewrote socket_setopt and socket_getopt to be cleaner @Added support for SO_RCVTIMEO and SO_SNDTIMEO to ext/sockets (Jason) | ||||
* | i'm sure i had this compile before;-) | Thies C. Arntzen | 2001-11-29 | 1 | -1/+2 |
| | |||||
* | fix a crash in socket_connect (if hostname was not resolvable) | Thies C. Arntzen | 2001-11-29 | 1 | -10/+13 |
| | | | | | | initialize max_fd in various fdset function fix error checking in _read and _write | ||||
* | Unified error/warning messages. | Markus Fischer | 2001-11-12 | 1 | -46/+46 |
| | |||||
* | WS | Markus Fischer | 2001-11-12 | 1 | -1/+1 |
| | |||||
* | Fix #14020 and some minor leaks. | Markus Fischer | 2001-11-12 | 1 | -1/+7 |
| | |||||
* | nuke remaining warnings | Daniel Beulshausen | 2001-11-01 | 1 | -8/+9 |
| | |||||
* | make this function static | Daniel Beulshausen | 2001-11-01 | 1 | -1/+3 |
| | |||||
* | - convert to use new zend_parse_parameters API | Daniel Beulshausen | 2001-11-01 | 1 | -832/+694 |
| | | | | | | | - unify errormessages + add socket_last_error() - fix linklibrary under windows - some streamlining | ||||
* | Fix possible leak. | Markus Fischer | 2001-10-30 | 1 | -0/+1 |
| | |||||
* | * zend_module_entry change: apino, debug and zts are moved first, | Stig Bakken | 2001-10-11 | 1 | -0/+2 |
| | | | | | | see README.EXTENSIONS file for upgrade help. @Introduced extension version numbers (Stig) | ||||
* | make this work under OSX | Sterling Hughes | 2001-10-05 | 1 | -0/+2 |
| | |||||
* | 2nd phase in back-substitution those macro's | Jeroen van Wolffelaar | 2001-09-25 | 1 | -2/+2 |
| | | | | | I've got pretty much everything now... | ||||
* | Back-substitute for Z_* macro's. If it breaks some extension (the script ↵ | Jeroen van Wolffelaar | 2001-09-25 | 1 | -6/+6 |
| | | | | isn't optimal, it parses for example var->zval.value incorrect) please let me know. | ||||
* | doh\! | Wez Furlong | 2001-09-19 | 1 | -1/+1 |
| | |||||
* | Fix silly bugs | Wez Furlong | 2001-09-19 | 1 | -5/+9 |
| | |||||
* | - Don't wrap lines... this is annoying while coding. | Derick Rethans | 2001-09-09 | 1 | -2/+2 |
| | |||||
* | Prevent incorrect warning message from occuring on an EOF of socket_read. | Jason Greene | 2001-09-05 | 1 | -2/+5 |
| | |||||
* | Much better fix for non forte compilers on Solaris. | Jason Greene | 2001-09-04 | 1 | -60/+57 |
| | | | | | | Removed pragma hack. Renamed socket struct to bsd_socket. | ||||
* | Break the entire PHP build | Sterling Hughes | 2001-08-24 | 1 | -2/+2 |
| | | | | | # just kidding, noet work :) |