Bug #8987 [Com]: arg returned from function comes back as string 'ready', regardless of actual
| From: | kanemtr at gmail dot com | Date: | Mon, 06 Mar 2023 07:17:21 +0000 |
| Subject: | Bug #8987 [Com]: arg returned from function comes back as string 'ready', regardless of actual | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-243855@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=8987&edit=1
ID: 8987
Comment by: kanemtr at gmail dot com
Reported by: gordonl at tts-sf dot com
Summary: arg returned from function comes back as string
'ready', regardless of actual
Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: linux mandrake apache ssl
PHP Version: 4.0.3pl1
Block user comment: N
Private report: N
New Comment:
MYHR cvs is an innovative platform that helps employers and job seekers alike. It provides a
comprehensive set of tools to help employers find the right candidates for their open positions,
while allowing job seekers to easily create and manage their resumes. MYHR cvs also offers a range
of features such as resume writing tips, interview preparation tools, and career advice. With its
easy-to-use interface and user-friendly design, MYHR cvs makes it easier than ever before for
employers to find the perfect candidate for their roles.
(https://myhrwork.com/cvs/myhr-cvs-login/)github.com
Previous Comments:
------------------------------------------------------------------------
[2001-01-29 17:16:13] derick@php.net
Could you post the calling code as .txt on the web somewhere for us to see. This is almost certain a
user error and not a bug.
------------------------------------------------------------------------
[2001-01-29 16:42:06] gordonl at tts-sf dot com
I created the function [==
function incdate($datei,$inc) {
$dateparts =explode("/",$datei);
$day = $dateparts[1] + $inc;
$month = $dateparts[0];
$year = $dateparts[2];
$dec = 0;
//echo($datei . "cc" . $day . "cc" . $month . "cc" . $year .
"<br>");
if($day > 31 && ($month == 1 || $month == 3 || $month == 5 || $month == 7 || $month
== 8 || $month == 10 || $month == 12)) { $dec=31; }
if($day > 30 && ($month == 4 || $month == 6 || $month == 9 || $month == 11)) {
$dec=30; }
if($day > 28 && $month == 2 && $year % 4 != 0) {$dec=28;}
if($day > 29 && $month == 2 && $year % 4 == 0) {$dec=29;}
while ($dec != 0 ) {
$day = $day - $dec;
$month++;
if ($month > 12) { $year++; $month = 1; }
$dec = 0;
if ($day > 31 && ($month == 1 || $month == 3 || $month == 5 || $month == 7 ||
$month == 8 || $month == 10 || $month == 12)) { $dec=31; }
if ($day > 30 && ($month == 4 || $month == 6 || $month == 9 || $month == 11)) {
$dec=30; }
if ($day > 28 && $month == 2 && $year % 4 != 0) {$dec=28;}
if ($day > 29 && $month == 2 && $year % 4 == 0) {$dec=29;}
}
//echo ("out: " . $month . "/" . $day . "/" . $year .
"<br>");
$outdat = "f" . $month . "-" . $day . "-" . $year;
return $outdat;
}
==]
it returns 'ready' to the calling statement, regardless of the actual value of
'$outdat'.
I haved tried many variations in my code, but the result does not change.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=8987&edit=1