PHP4.0.1的变化(二)_PHP
31、修正了一个使用MS-SQL时的初始化问题,这个问题可能导致mssql_query()函数的崩溃。(Zeev)
32、把PCRE升级到3.2,并且修正了一个选定的样式为一空字符串时的BUG。(Andrei)
33、修正了一个使得PHP无法直接从PHP.INI里读取extension_dir的BUG。(Zeev)
34、如果曾经定义过错误句柄,用set_error_handler()可以返回这个句柄的名字。(Zeev, Zend Engine)
35、宣布正式死亡(Declared officially dead,哈哈,老外很幽默吧)。这个功能在PHP 4.0.0里已经不能使用。(Zeev)
36、convert_cyr_string()对二进制传操作更加安全,而且在和其他PHP变量冲突是会停下。(Andi)
37、增加了array_unique、array_intersect和array_diff三个函数。(Stig Venaas)
38、修正了当使用未初始化的值和字符串的比较的问题。现在又和PHP3一样,把这些值当作空串处理。(Andi & Zeev, Zend Engine)
39、修正了date()函数使用时,'Z'标记在夏令时中出现的问题。(Andrei)
40、修正了var_dump()不会改变数组元素内部顺序的问题。(Zeev)
41、修正了过去stripcslashes()对于未知的转义符什么都不做为去掉 \ 。(Andrei)
42、WDDX现在总是把数组转化为结构体。(Andrei)
43、include_once()在找不到文件是将给出一个警告。(Zeev, Zend Engine)
44、修正了get_declared_classes()在某些情况下会返回多次相同结果的BUG。(Zeev, Zend Engine)
45、修正了rawurldecode()的参数冲突的BUG。(Zeev)
46、WIN32环境下CGI模式,php.ini中的设置错误将不再在HTTP的头部显示错误(就是那个powered by php ....)而是显示一个对话框。(Zeev)
47、修正了OCIFetchStatement()中在读完所有数据后,继续尝试读操作的错误。(Thies)
48、fopen_wrappers() are now extensible via modules
48、fopen_wrappers()现在可以通过模块扩展(不懂!我把原文留着)。(Hartmut Holzgraefe)
49、在使用trim是,去掉\0,使之和PHP3兼容。(Rasmus)
50、增加了imagecreatefromxbm()函数。(Jouni)
51、增加了imagewbmp()函数。(Jouni, based on patch from Rune Nordb?e Skillingstad)
52、增加了str_pad()用来把任意字符串添加到原字符串的左边或右边。(Andrei)
53、使short_tags,asp_tags和allow_call_time_pass_reference这些初始化指示能够以目录为基础(就是每个目录有自己的定义),比如,在.htaccess文件里设置。(Zeev)
54、增加了fflush()函数。(Eric Huss)
55、修正了当静态变量,默认的函数参数或类成员变量是数组时的问题。(Andi & Zeev, Zend Engine)
56、修正了virtual()函数使用输出缓存的问题。(Marc Pohl)
57、清除了flock()中的常量,并且增加了增加了第三个参数(EWOULDBLOCK时为true)。(Rasmus)
58、增加了pg_loimport()和pg_loexport()函数。(Jouni)
59、在getimagesize()中增加了对SWF文件的支持(应该是FLASH的文件吧)。(Derick Rethans)
60、增加了对有索引和无索引的文件数组的上传功能。如:eg. name="file[]" type="file"。(Rasmus)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Go language provides two dynamic function creation technologies: closure and reflection. closures allow access to variables within the closure scope, and reflection can create new functions using the FuncOf function. These technologies are useful in customizing HTTP routers, implementing highly customizable systems, and building pluggable components.

In C++ function naming, it is crucial to consider parameter order to improve readability, reduce errors, and facilitate refactoring. Common parameter order conventions include: action-object, object-action, semantic meaning, and standard library compliance. The optimal order depends on the purpose of the function, parameter types, potential confusion, and language conventions.

The key to writing efficient and maintainable Java functions is: keep it simple. Use meaningful naming. Handle special situations. Use appropriate visibility.

The advantages of default parameters in C++ functions include simplifying calls, enhancing readability, and avoiding errors. The disadvantages are limited flexibility and naming restrictions. Advantages of variadic parameters include unlimited flexibility and dynamic binding. Disadvantages include greater complexity, implicit type conversions, and difficulty in debugging.

1. The SUM function is used to sum the numbers in a column or a group of cells, for example: =SUM(A1:J10). 2. The AVERAGE function is used to calculate the average of the numbers in a column or a group of cells, for example: =AVERAGE(A1:A10). 3. COUNT function, used to count the number of numbers or text in a column or a group of cells, for example: =COUNT(A1:A10) 4. IF function, used to make logical judgments based on specified conditions and return the corresponding result.

The benefits of functions returning reference types in C++ include: Performance improvements: Passing by reference avoids object copying, thus saving memory and time. Direct modification: The caller can directly modify the returned reference object without reassigning it. Code simplicity: Passing by reference simplifies the code and requires no additional assignment operations.

The difference between custom PHP functions and predefined functions is: Scope: Custom functions are limited to the scope of their definition, while predefined functions are accessible throughout the script. How to define: Custom functions are defined using the function keyword, while predefined functions are defined by the PHP kernel. Parameter passing: Custom functions receive parameters, while predefined functions may not require parameters. Extensibility: Custom functions can be created as needed, while predefined functions are built-in and cannot be modified.

Exception handling in C++ can be enhanced through custom exception classes that provide specific error messages, contextual information, and perform custom actions based on the error type. Define an exception class inherited from std::exception to provide specific error information. Use the throw keyword to throw a custom exception. Use dynamic_cast in a try-catch block to convert the caught exception to a custom exception type. In the actual case, the open_file function throws a FileNotFoundException exception. Catching and handling the exception can provide a more specific error message.
