Archive for November, 2010

Today I’ve upgraded to Fedora 14 and the first thing I found was that I didn’t have network access. In console all commands failed with a “connect: Network is unreachable” message.

After wandering for a while what the heck was wrong I took a look at the output of ‘ip route’ and I discovered that there was not a default route, oh sh**!

[mangelp@hyperion ~]$ ip route 

192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.129 metric 2

It seems that NetworkManager didn’t set the default route after connecting, so no connection can be done with any ip address not specifically routed (a route for the local network is the only one added).

This can be easily fixed with the command ‘ip route add default via 192.168.0.1′. Here 192.168.0.1 is the gateway (my router).

[mangelp@hyperion ~]$ ip route add default via 192.168.0.1 

[mangelp@hyperion ~]$ ip route

192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.129 metric 2

default via 192.168.0.1 dev wlan0

After executing this I can connect to internet again.

UPDATE: Three months after, the bug is still there.

This bug is already solved in latest Fedora 14 updates and was half dhcp and half NetworkManager.

I’m all for this proposal, that would solve some issues that make php look dirty. But seems from this blog post that they are thinking on implementing it as an optional feature. This means that you must provide, throught an extension or php code or anything else, the strict checking stuff.

I think doing that as an optional feature is a fail for PHP as the whole point after type hinting is to force strict types in the parameters of a function call and force the caller of the function to cast&check the types saving time to the function developer and also keeping the peace of mind of knowing that an integer parameter will be always an integer. Also allowing devels to specify the semantic of optional hints can be a source of incoherent behaviour in APIs beetween applications.

PHP is a powerfull dynamic language, but has a lots of stuff that causes more suffering than benefit. I wonder when will came the time to clean up, break the damm backward compatibility and let it evolve to the next level.