173
173
you to fine-grain the levels of the messages stored.
176
==============================
177
Backwards incompatible changes
178
==============================
182
getrusage() will return NULL when passed incompatible arguments
183
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57&r2=1.58 && ?r1=1.53.2.2&r2=1.53.2.2.2.1
187
ZipArchive::setCommentName() now returns TRUE on success
188
ZipArchive::setCommentIndex() now return TRUE on success
189
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15&r2=1.1.2.16
193
SplFileObject::getFilename() now returns the filename, not relative/path/to/file
194
As of 5.2.1 #See http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/spl_directory.c?r1=1.45.2.27.2.10&r2=1.45.2.27.2.11
176
195
==================
177
196
NEW ERROR MESSAGES
178
197
==================
198
217
strrpos("foo", "f", 4);
199
218
/* Notice: strrpos(): Offset is greater than the length of haystack string in filename on line n */
220
/* when allow_url_include is OFF (default) */
221
include "data:;base64,PD9waHAgcGhwaW5mbygpOz8+";
222
/* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */
224
/* when allow_url_include is OFF (default) */
225
include "php://input";
226
/* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */
227
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.3&r2=1.45.2.4.2.4
203
231
OO related in the PHP core
340
In the date extension
341
=====================
345
strtotime("today", "now");'
346
/* Warning: strtotime() expects parameter 2 to be long, string given in filename on line n */
348
new DateTime(new stdclass);
349
/* Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 1 to be string, object given' in filename:n */
350
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.33&r2=1.43.2.45.2.34
312
353
In the dBase extension
313
354
======================
415
In the sysvmsg extension
416
========================
419
/* Warning: maximum size of the message has to be greater then zero in filename on line n */
426
$obj = new ZipArchive();
427
$obj->open("archive.zip");
428
$obj->setCommentName("", "comment");'
429
/* Notice: ZipArchive::setCommentName(): Empty string as entry name in filename on line n */
431
$obj->getCommentName("");
432
/* Notice: ZipArchive::getCommentName(): Empty string as entry name in filename on line n */
433
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15&r2=1.1.2.16
542
607
DateTime::__construct([string time[, DateTimeZone object]])
543
608
- Returns new DateTime object
544
string DateTime::format(DateTime object, string format)
609
string DateTime::format(string format)
545
610
- Returns date formatted according to given format
546
long DateTime::getOffset(DateTime object)
611
long DateTime::getOffset()
547
612
- Returns the DST offset
548
DateTimeZone DateTime::getTimezone(DateTime object)
613
DateTimeZone DateTime::getTimezone()
549
614
- Return new DateTimeZone object relative to give DateTime
550
void DateTime::modify(DateTime object, string modify)
615
void DateTime::modify(string modify)
551
616
- Alters the timestamp
552
617
array DateTime::parse(string date)
553
618
- Returns associative array with detailed info about given date
554
void DateTime::setDate(DateTime object, long year, long month, long day)
619
void DateTime::setDate(long year, long month, long day)
556
void DateTime::setISODate(DateTime object, long year, long week[, long day])
621
void DateTime::setISODate(long year, long week[, long day])
557
622
- Sets the ISO date
558
void DateTime::setTime(DateTime object, long hour, long minute[, long second])
623
void DateTime::setTime(long hour, long minute[, long second])
560
void DateTime::setTimezone(DateTime object, DateTimeZone object)
625
void DateTime::setTimezone(DateTimeZone object)
561
626
- Sets the timezone for the DateTime object
565
630
DateTimeZone DateTimeZone::__construct(string timezone)
566
631
- Returns new DateTimeZone object
567
string DateTimeZone::getName(DateTimeZone object)
632
string DateTimeZone::getName()
568
633
- Returns the name of the timezone
569
long DateTimeZone::getOffset(DateTimeZone object, DateTime object)
634
long DateTimeZone::getOffset(DateTime object)
570
635
- Returns the timezone offset
571
array DateTimeZone::getTransitions(DateTimeZone object)
636
array DateTimeZone::getTransitions()
572
637
- Returns numerically indexed array containing associative array for all transitions for the timezone
574
639
RecursiveRegexIterator:
692
757
boolean XMLReader::setSchema(string filename)
693
758
Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read()
763
bool addEmptyDir(string dirname)
764
Creates an empty directory in the archive
765
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15&r2=1.1.2.16
696
767
New class constants
697
768
===================
730
801
- Returns numerically indexed array with all timezone identifiers
731
802
string timezone_name_from_abbr(string abbr[, long gmtOffset[, long isdst]])
732
803
- Returns the timezone name from abbreviation
804
As of 5.2.1: #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/streamsfuncs.c?r1=1.58.2.6.2.9&r2=1.58.2.6.2.10&diff_format=u
805
int stream_socket_shutdown(resource stream, int how)
806
- Causes all or part of a full-duplex connection on the socket associated with stream to be shut down
750
824
string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
751
825
- Finds first occurrence of a string within another
829
As of 5.2.1: See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.4&r2=1.79.2.4.2.5&diff_format=u
830
void ming_setSWFCompression(int num)
831
- Sets output compression
832
void swfmovie::namedanchor(string name)
834
void swfmovie::protect([string pasword])
755
839
resource openssl_csr_get_public_key(mixed csr)
792
876
- End current element - returns FALSE on error
793
877
bool xmlwriter_write_raw(resource xmlwriter, string content)
794
878
- Write text - returns FALSE on error
879
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/xmlwriter/php_xmlwriter.c?r1=1.20.2.12.2.8&r2=1.20.2.12.2.9
880
bool xmlwriter_start_dtd_entity(resource xmlwriter, string name, bool isparam)
881
- Create start DTD Entity - returns FALSE on error
882
bool xmlwriter_end_dtd_entity(resource xmlwriter)
883
- End current DTD Entity - returns FALSE on error
884
bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, bool pe [, string pubid [, string sysid [, string ndataid]]]])
885
- Write full DTD Entity tag - returns FALSE on error
797
888
New optional parameters
810
901
- array curl_multi_info_read(resource mh [, long msgs_in_queue]) (msgs_in_queue)
905
- resource imap_open ( string mailbox, string username, string password [, int options[, int n_retries]]) (n_retries)
906
- bool imap_reopen(resource stream_id, string mailbox [, int options [, int n_retries]]) (n_retries)
907
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.7&r2=1.208.2.7.2.8
814
911
- int mb_strrpos(string haystack, string needle [, int offset [, string encoding]]) (offset)
915
- int swfmovie::streamMP3(mixed file [, float skip]) (skip)
916
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.3&r2=1.79.2.4.2.4
818
920
- int openssl_verify(string data, string signature, mixed key [, int signature_algo]) (signature_algo)
830
932
- SimpleXMLElement simplexml_load_file(string filename [, string class_name [, int options [, string ns [, bool is_prefix]]]]) (ns, is_prefix)
831
933
- SimpleXMLElement simplexml_load_string(string data [, string class_name [, int options [, string ns [, bool is_prefix]]]]) (ns, is_prefix)
937
- array iterator_to_array(Traversable it [, bool use_keys = true]) (use_keys)
938
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_iterators.c?r1=1.73.2.30.2.20&r2=1.73.2.30.2.21
835
942
- boolean XMLReader::open(string URI [, string encoding [, int options]]) (encoding, options)
876
987
- CURLOPT_FTP_SSL
877
988
- CURLOPT_FTPSSLAUTH
992
As of 5.2.1: See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.4&r2=1.79.2.4.2.5&diff_format=u
993
- SWFTEXTFIELD_USEFONT
994
- SWFTEXTFIELD_AUTOSIZE
995
- SWF_SOUND_NOT_COMPRESSED
996
- SWF_SOUND_ADPCM_COMPRESSED
997
- SWF_SOUND_MP3_COMPRESSED
998
- SWF_SOUND_NOT_COMPRESSED_LE
999
- SWF_SOUND_NELLY_COMPRESSED
881
1011
- OPENSSL_VERSION_NUMBER