PageRenderTime 26ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/php/migration52.functions.html

https://bitbucket.org/stillzhl/manuals
HTML | 291 lines | 277 code | 14 blank | 0 comment | 0 complexity | 249626da2e24a035f8f5d43018e109b9 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>New Functions</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="migration52.parameters.html">New Parameters</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="migration52.methods.html">New Methods</a></div>
  10. <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="migration52.functions" class="section">
  13. <h2 class="title">New Functions</h2>
  14. <p class="para">
  15. PHP 5.2.x introduced some new functions:
  16. </p>
  17. <p class="para">PHP Core:</p>
  18. <ul class="itemizedlist">
  19. <li class="listitem">
  20. <span class="simpara">
  21. <span class="function"><a href="function.array-fill-keys.html" class="function">array_fill_keys()</a></span>
  22. - Create an array using the elements of the first parameter as keys,
  23. each initialized to <em>val</em>
  24. </span>
  25. </li>
  26. <li class="listitem">
  27. <span class="simpara">
  28. <span class="function"><a href="function.error-get-last.html" class="function">error_get_last()</a></span>
  29. - Get the last occurred error as associative array. Returns <strong><code>NULL</code></strong>
  30. if there hasn&#039;t been an error yet
  31. </span>
  32. </li>
  33. <li class="listitem">
  34. <span class="simpara">
  35. <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span>
  36. - Get file extension for image-type returned by
  37. <span class="function"><a href="function.getimagesize.html" class="function">getimagesize()</a></span>, <span class="function"><a href="function.exif-read-data.html" class="function">exif_read_data()</a></span>,
  38. <span class="function"><a href="function.exif-thumbnail.html" class="function">exif_thumbnail()</a></span>, <span class="function"><a href="function.exif-imagetype.html" class="function">exif_imagetype()</a></span>
  39. </span>
  40. </li>
  41. <li class="listitem">
  42. <span class="simpara">
  43. <span class="function"><a href="function.memory-get-peak-usage.html" class="function">memory_get_peak_usage()</a></span>
  44. - Returns the peak allocated by PHP memory
  45. </span>
  46. </li>
  47. <li class="listitem">
  48. <span class="simpara">
  49. <span class="function"><a href="function.sys-get-temp-dir.html" class="function">sys_get_temp_dir()</a></span>
  50. - Returns directory path used for temporary files. (Added in 5.2.1)
  51. </span>
  52. </li>
  53. <li class="listitem">
  54. <span class="simpara">
  55. <span class="function"><a href="function.timezone-abbreviations-list.html" class="function">timezone_abbreviations_list()</a></span>
  56. - Returns associative array containing DST, offset and the timezone name
  57. </span>
  58. </li>
  59. <li class="listitem">
  60. <span class="simpara">
  61. <span class="function"><a href="function.timezone-identifiers-list.html" class="function">timezone_identifiers_list()</a></span>
  62. - Returns numerically indexed array with all timezone identifiers
  63. </span>
  64. </li>
  65. <li class="listitem">
  66. <span class="simpara">
  67. <span class="function"><a href="function.timezone-name-from-abbr.html" class="function">timezone_name_from_abbr()</a></span>
  68. - Returns the timezone name from abbreviation
  69. </span>
  70. </li>
  71. <li class="listitem">
  72. <span class="simpara">
  73. <span class="function"><a href="function.stream-socket-shutdown.html" class="function">stream_socket_shutdown()</a></span>
  74. - Causes all or part of a full-duplex connection on the socket
  75. associated with stream to be shut down. As of PHP 5.2.1.
  76. </span>
  77. </li>
  78. </ul>
  79. <p class="para"><a href="ref.image.html" class="link">Image</a>:</p>
  80. <ul class="itemizedlist">
  81. <li class="listitem">
  82. <span class="simpara">
  83. <span class="function"><a href="function.imagegrabscreen.html" class="function">imagegrabscreen()</a></span>
  84. - Grabs a screenshot of the whole screen. As of PHP 5.2.2.
  85. </span>
  86. </li>
  87. <li class="listitem">
  88. <span class="simpara">
  89. <span class="function"><a href="function.imagegrabwindow.html" class="function">imagegrabwindow()</a></span>
  90. - Captures a window. As of PHP 5.2.2.
  91. </span>
  92. </li>
  93. </ul>
  94. <p class="para"><a href="book.libxml.html" class="link">libXML</a>:</p>
  95. <ul class="itemizedlist">
  96. <li class="listitem">
  97. <span class="simpara">
  98. <span class="function"><a href="function.libxml-disable-entity-loader.html" class="function">libxml_disable_entity_loader()</a></span>
  99. - Disable the ability to load external entities. As of PHP 5.2.11.
  100. </span>
  101. </li>
  102. </ul>
  103. <p class="para"><a href="ref.mbstring.html" class="link">mbstring</a>:</p>
  104. <ul class="itemizedlist">
  105. <li class="listitem">
  106. <span class="simpara">
  107. <span class="function"><a href="function.mb-stripos.html" class="function">mb_stripos()</a></span>
  108. - Finds position of first occurrence of a string within another,
  109. case insensitive
  110. </span>
  111. </li>
  112. <li class="listitem">
  113. <span class="simpara">
  114. <span class="function"><a href="function.mb-stristr.html" class="function">mb_stristr()</a></span>
  115. - Finds first occurrence of a string within another, case insensitive
  116. </span>
  117. </li>
  118. <li class="listitem">
  119. <span class="simpara">
  120. <span class="function"><a href="function.mb-strrchr.html" class="function">mb_strrchr()</a></span>
  121. - Finds the last occurrence of a character in a string within another
  122. </span>
  123. </li>
  124. <li class="listitem">
  125. <span class="simpara">
  126. <span class="function"><a href="function.mb-strrichr.html" class="function">mb_strrichr()</a></span>
  127. - Finds the last occurrence of a character in a string within another,
  128. case insensitive
  129. </span>
  130. </li>
  131. <li class="listitem">
  132. <span class="simpara">
  133. <span class="function"><a href="function.mb-strripos.html" class="function">mb_strripos()</a></span>
  134. - Finds position of last occurrence of a string within another,
  135. case insensitive
  136. </span>
  137. </li>
  138. <li class="listitem">
  139. <span class="simpara">
  140. <span class="function"><a href="function.mb-strstr.html" class="function">mb_strstr()</a></span>
  141. - Finds first occurrence of a string within another
  142. </span>
  143. </li>
  144. </ul>
  145. <p class="para"><a href="ref.ming.html" class="link">ming</a> (As of PHP 5.2.1):</p>
  146. <ul class="itemizedlist">
  147. <li class="listitem">
  148. <span class="simpara">
  149. void ming_setSWFCompression(int num)
  150. - Sets output compression
  151. </span>
  152. </li>
  153. <li class="listitem">
  154. <span class="simpara">
  155. void swfmovie::namedanchor(string name)
  156. - Creates anchor
  157. </span>
  158. </li>
  159. <li class="listitem">
  160. <span class="simpara">
  161. void swfmovie::protect([string password])
  162. - Protects
  163. </span>
  164. </li>
  165. </ul>
  166. <p class="para"><a href="ref.openssl.html" class="link">openssl</a>:</p>
  167. <ul class="itemizedlist">
  168. <li class="listitem">
  169. <span class="simpara">
  170. <span class="function"><a href="function.openssl-csr-get-public-key.html" class="function">openssl_csr_get_public_key()</a></span>
  171. - Extracts public key from a CERT and prepares it for use
  172. </span>
  173. </li>
  174. <li class="listitem">
  175. <span class="simpara">
  176. <span class="function"><a href="function.openssl-csr-get-subject.html" class="function">openssl_csr_get_subject()</a></span>
  177. - Returns the subject of a CERT
  178. </span>
  179. </li>
  180. <li class="listitem">
  181. <span class="simpara">
  182. <span class="function"><a href="function.openssl-pkey-get-details.html" class="function">openssl_pkey_get_details()</a></span>
  183. - Returns an array with the key details (bits, pkey, type)
  184. </span>
  185. </li>
  186. </ul>
  187. <p class="para"><a href="ref.spl.html" class="link">spl</a>:</p>
  188. <ul class="itemizedlist">
  189. <li class="listitem">
  190. <span class="simpara">
  191. <span class="function"><a href="function.spl-object-hash.html" class="function">spl_object_hash()</a></span>
  192. - Return hash id for given object
  193. </span>
  194. </li>
  195. <li class="listitem">
  196. <span class="simpara">
  197. int iterator_apply(Traversable it, mixed function [, mixed params])
  198. - Calls a function for every element in an iterator
  199. </span>
  200. </li>
  201. </ul>
  202. <p class="para"><a href="ref.pcre.html" class="link">pcre</a>:</p>
  203. <ul class="itemizedlist">
  204. <li class="listitem">
  205. <span class="simpara">
  206. <span class="function"><a href="function.preg-last-error.html" class="function">preg_last_error()</a></span>
  207. - Returns the error code of the last regex execution
  208. </span>
  209. </li>
  210. </ul>
  211. <p class="para"><a href="ref.pgsql.html" class="link">pgsql</a>:</p>
  212. <ul class="itemizedlist">
  213. <li class="listitem">
  214. <span class="simpara">
  215. <span class="function"><a href="function.pg-field-table.html" class="function">pg_field_table()</a></span>
  216. - Returns the name of the table field belongs to, or table&#039;s oid
  217. if <em>oid_only</em> is <strong><code>TRUE</code></strong>
  218. </span>
  219. </li>
  220. </ul>
  221. <p class="para"><a href="ref.posix.html" class="link">posix</a>:</p>
  222. <ul class="itemizedlist">
  223. <li class="listitem">
  224. <span class="simpara">
  225. <span class="function"><a href="function.posix-initgroups.html" class="function">posix_initgroups()</a></span>
  226. - Calculate the group access list for the user specified in name
  227. </span>
  228. </li>
  229. </ul>
  230. <p class="para"><a href="ref.gmp.html" class="link">gmp</a>:</p>
  231. <ul class="itemizedlist">
  232. <li class="listitem">
  233. <span class="simpara">
  234. <span class="function"><a href="function.gmp-nextprime.html" class="function">gmp_nextprime()</a></span>
  235. - Finds next prime number
  236. </span>
  237. </li>
  238. </ul>
  239. <p class="para"><a href="ref.xmlwriter.html" class="link">xmlwriter</a>:</p>
  240. <ul class="itemizedlist">
  241. <li class="listitem">
  242. <span class="simpara">
  243. <span class="function"><a href="function.xmlwriter-full-end-element.html" class="function">xmlwriter_full_end_element()</a></span>
  244. - End current element - returns <strong><code>FALSE</code></strong> on error
  245. </span>
  246. </li>
  247. <li class="listitem">
  248. <span class="simpara">
  249. <span class="function"><a href="function.xmlwriter-write-raw.html" class="function">xmlwriter_write_raw()</a></span>
  250. - Write text - returns <strong><code>FALSE</code></strong> on error
  251. </span>
  252. </li>
  253. <li class="listitem">
  254. <span class="simpara">
  255. <span class="function"><a href="function.xmlwriter-start-dtd-entity.html" class="function">xmlwriter_start_dtd_entity()</a></span>
  256. - Create start DTD Entity - returns <strong><code>FALSE</code></strong> on error
  257. </span>
  258. </li>
  259. <li class="listitem">
  260. <span class="simpara">
  261. <span class="function"><a href="function.xmlwriter-end-dtd-entity.html" class="function">xmlwriter_end_dtd_entity()</a></span>
  262. - End current DTD Entity - returns <strong><code>FALSE</code></strong> on error
  263. </span>
  264. </li>
  265. <li class="listitem">
  266. <span class="simpara">
  267. <span class="function"><a href="function.xmlwriter-write-dtd-entity.html" class="function">xmlwriter_write_dtd_entity()</a></span>
  268. - Write full DTD Entity tag - returns <strong><code>FALSE</code></strong> on error
  269. </span>
  270. </li>
  271. </ul>
  272. </div><hr /><div class="manualnavbar" style="text-align: center;">
  273. <div class="prev" style="text-align: left; float: left;"><a href="migration52.parameters.html">New Parameters</a></div>
  274. <div class="next" style="text-align: right; float: right;"><a href="migration52.methods.html">New Methods</a></div>
  275. <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
  276. <div class="home"><a href="index.html">PHP Manual</a></div>
  277. </div></body></html>