File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ PHP 4 NEWS
3
3
? ? ??? 200?, Version 5.0.0
4
4
- Moved extensions to PECL (http://pear.php.net/): (James, Tal)
5
5
. ext/fribidi
6
+ - Fixed bug #22059 (ftp_chdir causes segfault). (Sara)
6
7
- Fixed bug #20442 (upgraded bundled expat to 1.95.5). (Ilia)
7
8
- Fixed bug #20155 (xmlrpc compile problem with ZE2). (Derick, Jan Schneider)
8
9
- Changed get_extension_funcs() to return list of the built-in Zend Engine
Original file line number Diff line number Diff line change @@ -473,7 +473,8 @@ ftp_chdir(ftpbuf_t *ftp, const char *dir)
473
473
return 0 ;
474
474
}
475
475
476
- efree (ftp -> pwd );
476
+ if (ftp -> pwd )
477
+ efree (ftp -> pwd );
477
478
478
479
if (!ftp_putcmd (ftp , "CWD" , dir )) {
479
480
return 0 ;
@@ -494,7 +495,8 @@ ftp_cdup(ftpbuf_t *ftp)
494
495
return 0 ;
495
496
}
496
497
497
- efree (ftp -> pwd );
498
+ if (ftp -> pwd )
499
+ efree (ftp -> pwd );
498
500
499
501
if (!ftp_putcmd (ftp , "CDUP" , NULL )) {
500
502
return 0 ;
You can’t perform that action at this time.
0 commit comments