Package: ampache
Version: 3.6-alpha1+dfsg-3
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Due to PHP's incredibly bad design and Ampache upstream not being able
to handle it, Amapche shows runtime errors following queries to a non-existent 
table in MySQL:

==================== snip ========================
2012-04-15 20:42:44 [nik] (DBH) -> Table 'ampache.localplay_httpq' doesn't 
exist [1146] 
2012-04-15 20:42:44 [ampache] (PHP) -> [Runtime Error] mysql_num_rows() expects 
parameter 1 to be resource, boolean given in file 
/usr/share/ampache/www/lib/class/dba.class.php(178) 
2012-04-15 20:42:44 [nik] (DBH) -> Table 'ampache.localplay_vlc' doesn't exist 
[1146] 
2012-04-15 20:42:44 [ampache] (PHP) -> [Runtime Error] mysql_num_rows() expects 
parameter 1 to be resource, boolean given in file 
/usr/share/ampache/www/lib/class/dba.class.php(178) 
2012-04-15 20:42:44 [nik] (DBH) -> Table 'ampache.localplay_mpd' doesn't exist 
[1146] 
2012-04-15 20:42:44 [ampache] (PHP) -> [Runtime Error] mysql_num_rows() expects 
parameter 1 to be resource, boolean given in file 
/usr/share/ampache/www/lib/class/dba.class.php(178) 
=================== snip ========================

The mysql_query() method is inconsistent in PHP due to the PHP developers' 
stance on
"loosely-typed languages". WHen it is succesfull, it returns a ressource 
object. If it fails,
it returns a boolean.

The Ampache developer, using PHP, does not test it (after they created an 
incomplete set
of MySQL tables in install stage) and passes a boolean on to mysql_num_rows(), 
which complains
heavily about it.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQHOBAEBAgA4BQJPix6QMRpodHRwczovL3d3dy5kb21pbmlrLWdlb3JnZS5kZS9n
cGctcG9saWN5LnR4dC5hc2MACgkQ2w6kvOIQdBKzHgv/RQzRvmk6BR2+sCXTW0XV
UavVXrtjDvSEa6dfPR0nsKuLmEDAMm77dAK2PLvZ7Rgi+mS+R1SLk0QvFzJRZ4ee
TFgd18q8nSprBPb/cAIfIStZ6eP5y06cThnFnReJiATWQMVEsZs2ioTU0TKNJ2wB
9adH30UO7GUIR8aiyGOCXYDIWr0+yWTzrOkcpzKNK/v4XQuezBg/5856jqgyqckz
qCnaVolCVtVNj1U2nE0bW16fCo/8bri+4X2C66AJzo4A9/copyxmNCe0ry8ZUzvD
Jq+7evJaRuymwoSrzeAHfTJdLgSHShYc/t+nG/1ClqFAYuF4ACU8FFQ5TinoYAGZ
iTLuT8McE0bBEePmSVaSHEyQ+a3EVAEvemp4Wl+oOAKSxZmcbOpi6GyhYr3jgG91
gfMJoG9+9/NagZHwM1MNm4ECOAxZtFFQelqrvyNVMzTcErT8B9gGTng0cC5kdGXx
9Gsl4JebVL+OJJzHBirZBF091/ROiYGwgOgD7AnU3IWP
=INR0
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to