onycro

All PHP Socket Error Codes

Aug 6th, 2011
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.30 KB | None | 0 0
  1. // All PHP Socket Error Codes
  2. // PHP Version: 5.3.2
  3. // Generated by:
  4.  
  5. <?php
  6. for($i=-10005;$i<133;$i++) {
  7.     if((socket_strerror($i)!="")&&(!stristr(socket_strerror($i),"Unknown error"))){
  8.         $txt = socket_strerror($i)."<br/>\n";
  9.         echo $i.' = '.$txt;
  10.     }
  11. }
  12. ?>
  13.  
  14. // Output:
  15. // All errors before -10005 are Unknown resolver errors.
  16.  
  17. -10005 = Unknown resolver error
  18. -10004 = No address associated with name
  19. -10003 = Unknown server error
  20. -10002 = Host name lookup failure
  21. -10001 = Unknown host
  22. 0 = Success
  23. 1 = Operation not permitted
  24. 2 = No such file or directory
  25. 3 = No such process
  26. 4 = Interrupted system call
  27. 5 = Input/output error
  28. 6 = No such device or address
  29. 7 = Argument list too long
  30. 8 = Exec format error
  31. 9 = Bad file descriptor
  32. 10 = No child processes
  33. 11 = Resource temporarily unavailable
  34. 12 = Cannot allocate memory
  35. 13 = Permission denied
  36. 14 = Bad address
  37. 15 = Block device required
  38. 16 = Device or resource busy
  39. 17 = File exists
  40. 18 = Invalid cross-device link
  41. 19 = No such device
  42. 20 = Not a directory
  43. 21 = Is a directory
  44. 22 = Invalid argument
  45. 23 = Too many open files in system
  46. 24 = Too many open files
  47. 25 = Inappropriate ioctl for device
  48. 26 = Text file busy
  49. 27 = File too large
  50. 28 = No space left on device
  51. 29 = Illegal seek
  52. 30 = Read-only file system
  53. 31 = Too many links
  54. 32 = Broken pipe
  55. 33 = Numerical argument out of domain
  56. 34 = Numerical result out of range
  57. 35 = Resource deadlock avoided
  58. 36 = File name too long
  59. 37 = No locks available
  60. 38 = Function not implemented
  61. 39 = Directory not empty
  62. 40 = Too many levels of symbolic links
  63. 42 = No message of desired type
  64. 43 = Identifier removed
  65. 44 = Channel number out of range
  66. 45 = Level 2 not synchronized
  67. 46 = Level 3 halted
  68. 47 = Level 3 reset
  69. 48 = Link number out of range
  70. 49 = Protocol driver not attached
  71. 50 = No CSI structure available
  72. 51 = Level 2 halted
  73. 52 = Invalid exchange
  74. 53 = Invalid request descriptor
  75. 54 = Exchange full
  76. 55 = No anode
  77. 56 = Invalid request code
  78. 57 = Invalid slot
  79. 59 = Bad font file format
  80. 60 = Device not a stream
  81. 61 = No data available
  82. 62 = Timer expired
  83. 63 = Out of streams resources
  84. 64 = Machine is not on the network
  85. 65 = Package not installed
  86. 66 = Object is remote
  87. 67 = Link has been severed
  88. 68 = Advertise error
  89. 69 = Srmount error
  90. 70 = Communication error on send
  91. 71 = Protocol error
  92. 72 = Multihop attempted
  93. 73 = RFS specific error
  94. 74 = Bad message
  95. 75 = Value too large for defined data type
  96. 76 = Name not unique on network
  97. 77 = File descriptor in bad state
  98. 78 = Remote address changed
  99. 79 = Can not access a needed shared library
  100. 80 = Accessing a corrupted shared library
  101. 81 = .lib section in a.out corrupted
  102. 82 = Attempting to link in too many shared libraries
  103. 83 = Cannot exec a shared library directly
  104. 84 = Invalid or incomplete multibyte or wide character
  105. 85 = Interrupted system call should be restarted
  106. 86 = Streams pipe error
  107. 87 = Too many users
  108. 88 = Socket operation on non-socket
  109. 89 = Destination address required
  110. 90 = Message too long
  111. 91 = Protocol wrong type for socket
  112. 92 = Protocol not available
  113. 93 = Protocol not supported
  114. 94 = Socket type not supported
  115. 95 = Operation not supported
  116. 96 = Protocol family not supported
  117. 97 = Address family not supported by protocol
  118. 98 = Address already in use
  119. 99 = Cannot assign requested address
  120. 100 = Network is down
  121. 101 = Network is unreachable
  122. 102 = Network dropped connection on reset
  123. 103 = Software caused connection abort
  124. 104 = Connection reset by peer
  125. 105 = No buffer space available
  126. 106 = Transport endpoint is already connected
  127. 107 = Transport endpoint is not connected
  128. 108 = Cannot send after transport endpoint shutdown
  129. 109 = Too many references: cannot splice
  130. 110 = Connection timed out
  131. 111 = Connection refused
  132. 112 = Host is down
  133. 113 = No route to host
  134. 114 = Operation already in progress
  135. 115 = Operation now in progress
  136. 116 = Stale NFS file handle
  137. 117 = Structure needs cleaning
  138. 118 = Not a XENIX named type file
  139. 119 = No XENIX semaphores available
  140. 120 = Is a named type file
  141. 121 = Remote I/O error
  142. 122 = Disk quota exceeded
  143. 123 = No medium found
  144. 124 = Wrong medium type
  145. 125 = Operation canceled
  146. 126 = Required key not available
  147. 127 = Key has expired
  148. 128 = Key has been revoked
  149. 129 = Key was rejected by service
  150. 130 = Owner died
  151. 131 = State not recoverable
  152.  
  153.  
  154. //Errors after 131 seem to be unknown errors.
Advertisement
Add Comment
Please, Sign In to add comment