Re: [PHP4BETA] Initial experience - it breaks ;)
| From: | Zeev Suraski | Date: | Mon, 19 Jul 1999 21:52:56 +0000 |
| Subject: | Re: [PHP4BETA] Initial experience - it breaks ;) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2263@lists.php.net to get a copy of this message | ||
Please, pretty please, bug reports should not go to this list, but to
bugs.php.net/version4/!
Thanks,
Zeev
On Mon, 19 Jul 1999, Sander Pilon wrote:
> Okay, i've compiled it, put it online and... it breaks :)
>
> Most of the stuff works, but I've been getting weird MySQL and uksort()
> errors:
>
> First, MySQL:
>
> Warning: MySQL Connection Failed: Unknown MySQL Server Host (tdn_sections)
> (0) in tdn_functions.x on line 407
>
> The piece of code:
>
> Function TDN_Frontpage_Sections()
> {
> global $sectionsdatabase,$sander,$pollcookie,$pollid;
>
> $p_sec="tdn_fp";
>
> $q="select identifier,url from sections where section='$p_sec' order
> by added desc";
> <407> $r=mysql($sectionsdatabase,$q);
> echo "Err.".mysql_error();
>
> ...
>
> This is wack, because other mysql() calls to the same database, same table
> seem to work.
>
> Second, where uksort() previously worked, it doesnt now:
>
>
> Warning: Wrong datatype in uksort() call in include/ne_baselib.x on line 11
>
> ---
> function key_desc($a, $b)
>
>
> if ($a == $b) return 0;
>
> return ($a > $b) ? -1 : 1;
> }
>
> functiOn ksort_desc($array)
> {
> <11> uksort($array,'key_desc');
> }
> ---
>
> Both of these errors are new and I've never seen them before.
>
> So, I threw it offline again and I intend to figure it out later (tomorrow)
> If any of you have some brilliant ideas, lemme know.
>
> Sander
>
>
> --
> PHP 4 Beta
>
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com> http://www.zend.com/
For a PGP public key, finger bourbon@netvision.net.il