|
99 | 99 | grapheme boundary instead of the end. |
100 | 100 | </simpara> |
101 | 101 |
|
102 | | - <simpara> |
103 | | - All <classname>Locale</classname> methods now throw a |
104 | | - <exceptionname>ValueError</exceptionname> when the locale argument contain null bytes. |
105 | | - </simpara> |
106 | | - |
107 | 102 | <simpara> |
108 | 103 | <function>transliterator_get_error_code</function>, |
109 | 104 | <function>transliterator_get_error_message</function>, |
|
258 | 253 | sets last_error to EBADF and raises an <constant>E_WARNING</constant> message. |
259 | 254 | </simpara> |
260 | 255 |
|
261 | | - <simpara> |
262 | | - <function>posix_kill</function> throws a <exceptionname>ValueError</exceptionname> |
263 | | - when the process_id argument is lower or greater than what the platform |
264 | | - supports (signed integer or long range), <function>posix_setpgid</function> |
265 | | - throws a <exceptionname>ValueError</exceptionname> when the process_id or |
266 | | - the process_group_id is lower than zero or greater than what the platform |
267 | | - supports. |
268 | | - </simpara> |
269 | | - |
270 | | - <simpara> |
271 | | - <function>posix_setrlimit</function> throws a <exceptionname>ValueError</exceptionname> |
272 | | - when the hard_limit or soft_limit arguments are lower than -1 or |
273 | | - if soft_limit is greater than hard_limit. |
274 | | - </simpara> |
275 | | - |
276 | 256 | </sect3> |
277 | 257 |
|
278 | 258 | <sect3 xml:id="migration85.other-changes.functions.reflection"> |
|
302 | 282 |
|
303 | 283 | </sect3> |
304 | 284 |
|
305 | | - <sect3 xml:id="migration85.other-changes.functions.session"> |
306 | | - <title>Session</title> |
307 | | - |
308 | | - <simpara> |
309 | | - <function>session_start</function> is stricter in regard to the options |
310 | | - argument. It throws a <exceptionname>ValueError</exceptionname> if the array is |
311 | | - not a hashmap, or a <exceptionname>TypeError</exceptionname> if the read_and_close |
312 | | - value is not a valid type compatible with int. |
313 | | - </simpara> |
314 | | - |
315 | | - </sect3> |
316 | | - |
317 | | - <sect3 xml:id="migration85.other-changes.functions.snmp"> |
318 | | - <title>SNMP</title> |
319 | | - |
320 | | - <simpara> |
321 | | - <function>snmpget</function>, |
322 | | - <function>snmpset</function>, |
323 | | - <function>snmp2_get</function>, |
324 | | - <function>snmp2_set</function>, |
325 | | - <function>snmp3_get</function>, |
326 | | - <function>snmp3_set</function> |
327 | | - and <methodname>SNMP::__construct</methodname> throw a |
328 | | - <exceptionname>ValueError</exceptionname> when the hostname |
329 | | - is too large, contains any null byte or if the port is given |
330 | | - when negative or greater than 65535, timeout and retries values |
331 | | - are lower than -1 or too large. |
332 | | - </simpara> |
333 | | - |
334 | | - </sect3> |
335 | | - |
336 | 285 | <sect3 xml:id="migration85.other-changes.functions.sockets"> |
337 | 286 | <title>Sockets</title> |
338 | 287 |
|
339 | | - <simpara> |
340 | | - <function>socket_create_listen</function>, |
341 | | - <function>socket_bind</function> and <function>socket_sendto</function> |
342 | | - throw a <exceptionname>ValueError</exceptionname> if the port is lower than 0 |
343 | | - or greater than 65535, and also if any of the hints array entries are |
344 | | - indexed numerically. |
345 | | - </simpara> |
346 | | - |
347 | | - <simpara> |
348 | | - <function>socket_addrinfo_lookup</function> throws a |
349 | | - <exceptionname>TypeError</exceptionname> if any of the hints values cannot be cast |
350 | | - to int and can throw a <exceptionname>ValueError</exceptionname> if any of these |
351 | | - values overflow. |
352 | | - </simpara> |
353 | | - |
354 | | - <simpara> |
355 | | - <function>socket_set_option</function> with |
356 | | - <constant>MCAST_LEAVE_GROUP</constant>/<constant>MCAST_LEAVE_SOURCE_GROUP</constant> |
357 | | - options will throw an exception if the value isn't a valid object or array. |
358 | | - </simpara> |
359 | | - |
360 | 288 | <simpara> |
361 | 289 | <function>socket_create</function>/<function>socket_bind</function> can |
362 | 290 | create <constant>AF_PACKET</constant> family sockets. |
|
367 | 295 | string representation with <constant>AF_PACKET</constant> socket. |
368 | 296 | </simpara> |
369 | 297 |
|
370 | | - <simpara> |
371 | | - <function>socket_set_option</function> with multicast context throws a |
372 | | - <exceptionname>ValueError</exceptionname> when the created socket is not of |
373 | | - <constant>AF_INET</constant>/<constant>AF_INET6</constant> family. |
374 | | - </simpara> |
375 | | - |
376 | | - </sect3> |
377 | | - |
378 | | - <sect3 xml:id="migration85.other-changes.functions.tidy"> |
379 | | - <title>Tidy</title> |
380 | | - |
381 | | - <simpara> |
382 | | - <methodname>tidy::__construct</methodname>, |
383 | | - <methodname>tidy::parseFile</methodname>, |
384 | | - <methodname>tidy::parseString</methodname> now throws a |
385 | | - <exceptionname>ValueError</exceptionname> if the configuration contains an |
386 | | - invalid value or attempts to set a read-only internal entry, |
387 | | - and a <exceptionname>TypeError</exceptionname> if a configuration key is not a |
388 | | - string. |
389 | | - </simpara> |
390 | | - |
391 | 298 | </sect3> |
392 | 299 |
|
393 | 300 | <sect3 xml:id="migration85.other-changes.functions.zlib"> |
|
0 commit comments