PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_Ebay » Bug #4420

GetReturnURL.php / SetReturnURL.php

Details

Submitted2005-05-24 18:36 UTC
Fromtalyaniv at gmail dot com
Assignedamt
StatusClosed
PackageServices_Ebay
PHP Version5.0.2
OSLinux
Roadmaps(Not assigned)

Comments

[2005-05-24 18:36 UTC] talyaniv at gmail dot com

Description:
------------
There is a problem with the spelling (upper / lower case) of the file names:
Ebay/Call/GetReturnURL.php
and
Ebay/Call/SetReturnURL.php

The correct names should be:
GetReturnUrl.php and SetReturnUrl.php (note: URL vs. Url)

The bug is not catched in Windows, as Windows is case insensitive, but it is catced in Unix/Linux.

I simply changed the names of the files and the problem was resolved.

Reproduce code:
---------------
In Linux - open examples/example_GetRuName.php, change the suggested 'MyUseCase' to a proper EBay user and run the script. You will see the errors.

Expected result:
----------------
No errors

Actual result:
--------------
A list of thrown errors

[2005-05-24 19:35 UTC] talyaniv at gmail dot com

The problem was reproduced as proposed here, using examples/example_GetRuName.php. When debugging I found that in Ebay.php, line 395:
if (file_exists($filename))...
The given $filename was "SetReturnUrl.php", while the filename in the system was in capitals, hence the problem. The problem was fixed after I changed the file name itself.