Posted: July 3rd, 2009 | Author: Mihai Bojin | Filed under: General | Tags: iphone 3g, iphone dev-team, jailbreak, jailbreaking, ultrasn0w, unlocking | No Comments »
I recently updated my iPhone 3G to the new 3.0 firmware.
The process went very smoothly involving the following steps.
- I synced my iPhone to iTunes in order to preserve my contacts and App Store installed apps;
- I updated the iPhone to the 3.0 firmware using iTunes;
- At this point my iPhone got locked and I had to activate it using an Orange SIM card (the Jailbreak process should fix this step for you, but it didn’t work for me; it’s a safe bet to have an appropriate SIM card around);
- Jailbreak using PwnageTool 3.0 for Mac; first I tried using expert mode and toying around with the settings… that didn’t seem to work and iTunes gave me the infamous 1600 error; I restarted the PwnageTool process using the default settings, putting my iPhone into DFU mode and uploading the custom firmware through iTunes;
- Bingo, my iPhone was now Jailbroken but not unlocked; I added the repo666.ultrasn0w.com into Cydia, searched for and installed UltraSn0w and rebooted the iPhone;
- I now had a running jailbroken and unlocked 3.0 iPhone 3G !
You can see the official iPhone 3G and UltraSn0w tutorial on iPhone Dev Team’s blog.
Please share your Jailbreak experience with us in the comments section !
Posted: July 3rd, 2009 | Author: Mihai Bojin | Filed under: PHP, Troubleshooting, zend framework | Tags: 1.7.4, PHP, php 5.3.0, zend framework, Zend_Cache, Zend_Cache_Backend_File, zf, zf 1.7 | No Comments »
Hello,
If you’re using Zend Framework 1.7.x (I was using 1.7.4), PHP 5.3.0 and Zend_Cache, you’ll probably see an error like set_magic_quotes_runtime() is deprecated.
You can easily fix this error by editing Zend/Cache/Backend/File.php and in the _fileGetContents method commenting the following two blocks of code:
if (function_exists(’get_magic_quotes_runtime’)) {
$mqr = @get_magic_quotes_runtime();
@set_magic_quotes_runtime(0);
}
and
if (function_exists(’set_magic_quotes_runtime’)) {
@set_magic_quotes_runtime($mqr);
}
Additionally you could search for all the set_magic_quotes_runtime function calls and comment them out.
You could also update to the latest Zend Framework (which now is 1.8.4) which has this issue fixed.
As usual feel free to drop any thoughts in the comments section of this post !
Posted: July 2nd, 2009 | Author: Mihai Bojin | Filed under: General, PHP, Troubleshooting, zend framework | Tags: libmysqlclient, mac osx, PHP, php 5.3.0, zend, zend server, zend server ce | 1 Comment »
As you already know PHP 5.3.0 is out, with lots of interesting features like namespaces and closures and other cool stuff !
I wanted to give it a try but I also meant to keep my existing Zend Server CE 4 installation.
Because of that I had to compile the new PHP 5.3.0 on my Leopard based Mac…
Find out why an apparently easy task has taken me over 2 hours of debugging, below !
Compiling PHP 5.3.0 proved somewhat difficult as I ran into a number of problems like MySQL 32/64 bits architecture, not finding a libraries like libxml in the system, other 32/64 bits incompatibilities and so on.
My troubles started because I had a 64bit MySQL version installed on my Mac (it came with the system) ! PHP itself compiles as 32bits and if you try to compile it on 64bits you will run into other library incompatibilities (btw, can’t wait for Snow Leopard to come out… all will be 64bits !).
After figuring that out, the rest was preety easy to fix !
I will tell you the exact steps you need to make in order to install PHP 5.3.0 over your Zend Server CE 4 on the Mac OSX 10.5 Leopard operating system:
- download PHP 5.3.0
- download the latest MySQL Community Server from Mysql (I used 5.1.36)
- open up a Terminal window and go into super user mode (sudo su and enter your login password)
- move the downloaded mysql archive to /usr/local (mv /Users/[your_username]/mysql-5.1.36-osx10.5-x86.tar.gz /usr/local/)
- run cd /usr/local
- run tar xzf mysql-5.1.36-osx10.5-x86.tar.gz
- move the downloaded php archive to /usr/local (mv /Users/[your_username]/php-5.3.0.tar.gz /usr/local/)
- run tar xzf php-5.3.0.tar.gz
- run cd php-5.3.0
- run the following configure command:
‘./configure’ ‘–prefix=/Applications/ZendServer’ ‘–with-config-file-path=/Applications/ZendServer/etc’ ‘–disable-debug’ ‘–enable-inline-optimization’ ‘–disable-all’ ‘–enable-libxml’ ‘–enable-session’ ‘–enable-xml’ ‘–enable-hash’ ‘–with-pear’ ‘–with-apxs2=/Applications/ZendServer/apache2/bin/apxs’ ‘–with-layout=GNU’ ‘–enable-filter’ ‘–with-pcre-regex’ ‘–with-zlib=shared’ ‘–enable-simplexml’ ‘–enable-xmlwriter’ ‘–enable-dom’ ‘–with-libxml-dir=/usr’ ‘–with-openssl=shared’ ‘–enable-pdo’ ‘–with-pdo-mysql=/usr/local/mysql-5.1.36-osx10.5-x86′ ‘–with-iconv-dir=shared’
- run make
- run make test
- If you get an error about libmysqlclient.16.dylib not beeing of the correct architecture do the following two steps:
- [optional] run rm /usr/local/mysql/lib/libmysqlclient.16.dylib
- [optional] run ln -s /usr/local/mysql-5.1.36-osx10.5-x86/lib/libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib
- run make install
- exit super user mode by running: exit
- run apachectl restart
- at this point you should have PHP 5.3.0 running
Hope this quick tutorial helps you, as I’ve spent around 2-3 hours figuring out all the crap MacOSX has thrown at me !
I ran into a different problem afterwards, namely Zend Framework 1.8, PHP 5.3.0 and Zend_Cache do not work together out of the box and spit out this error message: "set_magic_quotes_runtime() is deprecated"; see this fix here !
If you have any problems or you would like to share your experience with installing or using PHP 5.3.0, know that your comments are welcome !